Click here to Skip to main content
15,914,165 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Retreving an auto number field from Access Pin
Bo Hunter7-Aug-03 14:32
Bo Hunter7-Aug-03 14:32 
GeneralPossible Vb Question Pin
droesch6-Aug-03 7:06
droesch6-Aug-03 7:06 
GeneralRe: Possible Vb Question Pin
RichardGrimmer18-Aug-03 4:07
RichardGrimmer18-Aug-03 4:07 
GeneralExtremly stupid VBA question Pin
Harald Krause6-Aug-03 1:17
Harald Krause6-Aug-03 1:17 
GeneralRe: Extremly stupid VBA question Pin
MrGee6-Aug-03 14:00
MrGee6-Aug-03 14:00 
GeneralRe: Extremly stupid VBA question Pin
RichardGrimmer18-Aug-03 4:08
RichardGrimmer18-Aug-03 4:08 
GeneralRe: Extremly stupid VBA question Pin
Nick Seng6-Aug-03 15:49
Nick Seng6-Aug-03 15:49 
GeneralADODB recordset Pin
_crs_6-Aug-03 0:41
_crs_6-Aug-03 0:41 
hello,
I want to send a pointer from my VB client app. to a VC dll the code is :
for VB
-------

Private Declare Sub GenerateReport Lib "Generator.dll" (ByVal datele As ADODB.Recordset)

Private Sub Command1_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset

c = "PROVIDER=sqloledb;server=romulus;uid=sa;pwd=951;DataBase=SindServLast"
Set con = New ADODB.Connection
con.Open c
Dim s As String
s = "select * from T_USR_Useri"
Set rs = con.Execute(s)
GenerateReport rs
End Sub

fot VC dll
-----------

void GenerateReport(_RecordsetPtr pRs)
{
pRs->MoveFirst();
CString text;
text=(char*)((_bstr_t)pRs->Fields->GetItem((_variant_t)("usr_LoginName"))->Value);
}

and everything works fine in vc ... the pointer is recived correctly and the text CString is filled ok but after that when my c++ function ends and the execution returns to VB the VB client crushes ... and raise an access violation error in a vb dll ...
why ?
thanks !!!!!

GeneralRe: ADODB recordset Pin
RichardGrimmer18-Aug-03 4:10
RichardGrimmer18-Aug-03 4:10 
GeneralVB.Net- C# integration Pin
Madhuri Mittal5-Aug-03 23:27
Madhuri Mittal5-Aug-03 23:27 
GeneralVBA help! Pin
Vladimir Georgiev5-Aug-03 23:17
Vladimir Georgiev5-Aug-03 23:17 
GeneralHardware Manipulation Pin
347Studboy5-Aug-03 13:11
347Studboy5-Aug-03 13:11 
GeneralRe: Hardware Manipulation Pin
pxw16-Aug-03 6:48
pxw16-Aug-03 6:48 
GeneralRe: Hardware Manipulation Pin
MarziehBere27-Jul-10 20:27
MarziehBere27-Jul-10 20:27 
GeneralVB events and Command Buttons Pin
blaze19785-Aug-03 12:15
blaze19785-Aug-03 12:15 
GeneralRe: VB events and Command Buttons Pin
Nick Seng5-Aug-03 16:00
Nick Seng5-Aug-03 16:00 
GeneralRe: VB events and Command Buttons Pin
blaze19786-Aug-03 3:27
blaze19786-Aug-03 3:27 
GeneralRe: VB events and Command Buttons Pin
Nick Seng6-Aug-03 15:32
Nick Seng6-Aug-03 15:32 
GeneralRe: VB events and Command Buttons Pin
RichardGrimmer18-Aug-03 4:12
RichardGrimmer18-Aug-03 4:12 
GeneralRe: VB events and Command Buttons Pin
blaze197818-Aug-03 5:30
blaze197818-Aug-03 5:30 
GeneralRe: VB events and Command Buttons Pin
Nick Seng18-Aug-03 5:57
Nick Seng18-Aug-03 5:57 
GeneralHashtable Pin
kowens5-Aug-03 9:23
kowens5-Aug-03 9:23 
GeneralUnable to import system.io Pin
GrGonzo5-Aug-03 9:22
GrGonzo5-Aug-03 9:22 
GeneralRe: Unable to import system.io Pin
Nick Seng5-Aug-03 15:43
Nick Seng5-Aug-03 15:43 
GeneralWindows API related problem Pin
attidude5-Aug-03 7:52
attidude5-Aug-03 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.