Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStoring a file with an exe Pin
Ricky Koh4-Sep-03 21:07
Ricky Koh4-Sep-03 21:07 
GeneralRe: Storing a file with an exe Pin
includeh104-Sep-03 21:10
includeh104-Sep-03 21:10 
GeneralRe: Storing a file with an exe Pin
Ricky Koh4-Sep-03 21:15
Ricky Koh4-Sep-03 21:15 
GeneralRe: Storing a file with an exe Pin
Jagadeesh VN5-Sep-03 4:24
Jagadeesh VN5-Sep-03 4:24 
Generalneed some help - todo: Pin
cridaniel4-Sep-03 17:06
cridaniel4-Sep-03 17:06 
GeneralSelf extracting files Pin
Dor4-Sep-03 15:51
Dor4-Sep-03 15:51 
General**horribly stumped** passing a pointer to C++ from VB Pin
rajdawg4-Sep-03 15:51
rajdawg4-Sep-03 15:51 
GeneralRe: **horribly stumped** passing a pointer to C++ from VB Pin
parths4-Sep-03 17:52
parths4-Sep-03 17:52 
Instead of getting the pointer to you object and then sending the pointer value 'ByVal',
why don't you just send a reference to the object?


rajdawg wrote:
Private Declare Function GetAccount Lib "C:\...\DataAccess.dll" (ByVal ptr As Long)

Private Declare Function GetAccount Lib "C:\...\DataAccess.dll" (ByRef ptr As Long)


rajdawg wrote:
Set Account = New clsAccount
ptr = ObjPtr(Account)
MsgBox Hex(ptr), vbInformation <-- Prints the following value - 0x0014F9F0
GetAccount ptr


Set Account = New clsAccount
GetAccount Account

VB by default uses Byref params

BTW I've never tried passing a class from VB to C. I wasn't sure it was possible. Structs, yes, but classes, with their code sections and all?

"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
GeneralRe: **horribly stumped** passing a pointer to C++ from VB Pin
rajdawg5-Sep-03 1:20
rajdawg5-Sep-03 1:20 
Questionhow to get the number of digits Pin
elmahdy4-Sep-03 13:44
elmahdy4-Sep-03 13:44 
AnswerRe: how to get the number of digits Pin
Dor4-Sep-03 15:47
Dor4-Sep-03 15:47 
AnswerRe: how to get the number of digits Pin
Larry J. Siddens5-Sep-03 10:17
Larry J. Siddens5-Sep-03 10:17 
GeneralEnvironment Vars... Pin
RobJones4-Sep-03 13:41
RobJones4-Sep-03 13:41 
GeneralRe: Environment Vars... Pin
Neville Franks5-Sep-03 0:15
Neville Franks5-Sep-03 0:15 
GeneralRe: Environment Vars... Pin
RobJones5-Sep-03 3:53
RobJones5-Sep-03 3:53 
GeneralError in adding submenu to the File Menu Pin
Binayak4-Sep-03 13:28
Binayak4-Sep-03 13:28 
GeneralExceptions Pin
Rickard Andersson204-Sep-03 13:03
Rickard Andersson204-Sep-03 13:03 
GeneralRe: Exceptions Pin
dog_spawn4-Sep-03 13:16
dog_spawn4-Sep-03 13:16 
GeneralRe: Exceptions Pin
Rickard Andersson204-Sep-03 22:34
Rickard Andersson204-Sep-03 22:34 
GeneralRe: Exceptions Pin
Alvaro Mendez4-Sep-03 17:40
Alvaro Mendez4-Sep-03 17:40 
GeneralRe: Exceptions Pin
Rickard Andersson204-Sep-03 22:41
Rickard Andersson204-Sep-03 22:41 
GeneralRe: Exceptions Pin
jhwurmbach5-Sep-03 1:18
jhwurmbach5-Sep-03 1:18 
GeneralRe: Exceptions Pin
Andrew Walker5-Sep-03 1:32
Andrew Walker5-Sep-03 1:32 
Questionhow to schedule a a thread to a specific CPU? Pin
Anonymous4-Sep-03 12:46
Anonymous4-Sep-03 12:46 
AnswerRe: how to schedule a a thread to a specific CPU? Pin
Michael Dunn4-Sep-03 13:20
sitebuilderMichael Dunn4-Sep-03 13:20 

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.