Click here to Skip to main content
16,008,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltab control problem Pin
Brad Jennings20-Sep-02 11:25
Brad Jennings20-Sep-02 11:25 
GeneralRe: tab control problem Pin
Brad Jennings20-Sep-02 11:41
Brad Jennings20-Sep-02 11:41 
GeneralCOleClientItem Pin
Gary Kirkham20-Sep-02 10:37
Gary Kirkham20-Sep-02 10:37 
QuestionSendMessage not sending? Pin
ns20-Sep-02 10:21
ns20-Sep-02 10:21 
AnswerRe: SendMessage not sending? Pin
Joaquín M López Muñoz20-Sep-02 10:24
Joaquín M López Muñoz20-Sep-02 10:24 
GeneralRe: SendMessage not sending? Pin
ns20-Sep-02 10:36
ns20-Sep-02 10:36 
GeneralRe: SendMessage not sending? Pin
ns20-Sep-02 10:45
ns20-Sep-02 10:45 
GeneralGetSafeHwnd() Pin
ns20-Sep-02 10:10
ns20-Sep-02 10:10 
The VC client calls the VB dll:
{
CoInitialize(NULL);
_Class1Ptr ptr;
ptr.CreateInstance(__uuidof(Class1));
m_Progress1.SetStep(1);

m_Progress1.SetRange(0, 10);

ptr->CheckingStuff(m_Progress1.GetSafeHwnd());


}


in VB there is:

Public Function CheckingStuff(PbarHandle As Long)


The VC compiler grumbles:

error C2664: 'CheckingStuff' : cannot convert parameter 1 from 'struct HWND__ *' to 'long *'

I was told that long in VB should be the type, but apparently not.

I even tried:m_Progress1.GetSafeHwnd()->m_hWnd; and m_Progress1.m_hWnd as the calling function argumnents but thats not right either....

Please help!


Thanks,
ns
GeneralRe: PArameter Type problem Pin
Joaquín M López Muñoz20-Sep-02 10:12
Joaquín M López Muñoz20-Sep-02 10:12 
GeneralRe: PArameter Type problem Pin
ns20-Sep-02 10:17
ns20-Sep-02 10:17 
GeneralVisual C++.NET Problem Pin
valikac20-Sep-02 9:01
valikac20-Sep-02 9:01 
GeneralRe: Visual C++.NET Problem Pin
Joaquín M López Muñoz20-Sep-02 9:48
Joaquín M López Muñoz20-Sep-02 9:48 
GeneralRe: Visual C++.NET Problem Pin
valikac20-Sep-02 9:50
valikac20-Sep-02 9:50 
GeneralRe: Visual C++.NET Problem Pin
Mike Nordell20-Sep-02 10:10
Mike Nordell20-Sep-02 10:10 
GeneralVoice chat Pin
fahadmunir3320-Sep-02 8:28
fahadmunir3320-Sep-02 8:28 
GeneralRe: Voice chat Pin
Mike Nordell21-Sep-02 11:08
Mike Nordell21-Sep-02 11:08 
GeneralQuestion about using CSocket writing a server Pin
nachilau20-Sep-02 8:23
nachilau20-Sep-02 8:23 
GeneralRe: Question about using CSocket writing a server Pin
Joaquín M López Muñoz20-Sep-02 10:07
Joaquín M López Muñoz20-Sep-02 10:07 
GeneralRe: Question about using CSocket writing a server Pin
nachilau20-Sep-02 11:16
nachilau20-Sep-02 11:16 
GeneralCArchive and memory mapped files Pin
Ted Christiansen20-Sep-02 8:22
Ted Christiansen20-Sep-02 8:22 
GeneralPostMessage Problem Pin
jmkhael20-Sep-02 8:12
jmkhael20-Sep-02 8:12 
GeneralRe: PostMessage Problem Pin
Nick Parker20-Sep-02 9:23
protectorNick Parker20-Sep-02 9:23 
Generalcreate directory Pin
brianwelsch20-Sep-02 8:08
brianwelsch20-Sep-02 8:08 
GeneralRe: create directory Pin
jmkhael20-Sep-02 8:13
jmkhael20-Sep-02 8:13 
GeneralRe: create directory Pin
brianwelsch20-Sep-02 8:20
brianwelsch20-Sep-02 8: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.