|
|
|
Visual Basic и Visual C++ Dll
|
|||
|---|---|---|---|
|
#18+
Уважаемые знатоки, подскажите пожалуйста в чём эдесь ошибка? При вызове Dll написанной Visual C++ из Visual Basic возникает ошибка 49 (Bad Dll Calling Convention). Вот файлы: Project1.h: #ifndef _PROJECT1_H_ #define _PROJECT1_H_ #include <iostream.h> #include <stdio.h> #include <windows.h> extern "C" __declspec(dllexport) int strGroupTime(int a); #endif Project1.cpp: #include "project1.h" extern "C" __declspec(dllexport) int strGroupTime(int a) { a=a+1; return a; } Module1.bas: Option Explicit Public Declare Function strGroupTime Lib "CheckTime.dll" (ByVal a As Integer) As Integer Form1(Code): Private Sub Command1_Click() Dim intA As Integer Dim strB As String Dim intV As Integer intV = 50 intA = strGroupTime(intV) strB = Str(intA) Label1.Caption = strB End Sub ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.11.2005, 12:51:41 |
|
||
|
Visual Basic и Visual C++ Dll
|
|||
|---|---|---|---|
|
#18+
Я по этой лабе учился Dll делать. незнай, может поможет... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.11.2005, 18:15:35 |
|
||
|
Visual Basic и Visual C++ Dll
|
|||
|---|---|---|---|
|
#18+
и часть вторая... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.11.2005, 18:15:54 |
|
||
|
|

start [/forum/topic.php?fid=60&fpage=304&tid=2166809]: |
0ms |
get settings: |
7ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
77ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 229ms |
| total: | 380ms |

| 0 / 0 |
