|
hi
i have vb activex dll...i want to use vc++...please help me....
HINSTANCE hLib;
hLib = LoadLibrary(c:\scdthndl.dll");
pIncrement = (INCREMENTFUN)GetProcAddress((HMODULE)hLib, "StringToCSV");
pIncrement is giving 0x000000..
|
|
|
|
|
As I told you before, verify the function is exported.
Steve
|
|
|
|
|
Member 3653751 wrote: c:\mydll.dll
Member 3653751 wrote: scdthndl.dll
Why different names?
Member 3653751 wrote: pIncrement = (INCREMENTFUN)GetProcAddress((HMODULE)hLib, "StringToCSV"); // here its giving pIncrement = 0x0000000
Afterwards, you should call GetLastError() to obtain more info.
Did you check what is the exported function name (you may use, for instance, the Depends tool)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
sorry.... by mistake i typed scdthndl.dll...if i give mydll.dll also same problem....
can u please help
i want use vb dll in vc++
|
|
|
|
|
Did you check the exported function name?
Do you read the suggestions (mine and of the other folks?)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i checked exported function name....it is correct only...
but its giveing NULL....
|
|
|
|
|
Why didn't you call, as suggested, GetLastError ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
the other comments are fully right to call the dll.
But for string parameter you should use BSTR type. An article with basic explanations:
Guide to BSTR and C String Conversions[^]
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Check whether scdthndl.dll is loaded, means hLib is having value or it is also 0?
Величие не Бога может быть недооценена.
|
|
|
|
|
hi
hlib have value...GetProcAddress() only Null coming
please give me any suggestions....
|
|
|
|
|
Then surely StringToCSV is not an exported function from that DLL
check the depedency of the DLL, check if StringToCSV is shown in Exported functions.
Величие не Бога может быть недооценена.
|
|
|
|
|
Hi, i already implement 4 of wizard page by using 2 dialog.(Exp: page 1 = dialog1, page 2 = dialog2, page 3 = dialog 1, page 4 = dialog 2)
The problem now is i cannot assign the title for every wizard page. Anyone can help?
|
|
|
|
|
SetWindowText in OnSetActivePage()
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
hi
i m using CeGetDeviceId();for finding device id
this return 0,while device is existing.
please help me for this.
thanks in advance.
|
|
|
|
|
Hi All
I am using list control(report style) in formview.
I am trying to insert the columns in OnCreate (or) Show Window Function.
But Neither Works ..
Any Way to Solve it.
Regards
Gany
|
|
|
|
|
How you are doing..plz insert code!
|
|
|
|
|
m_listctrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
CRect rect;
m_listctrl.GetClientRect(&rect);
int ctl=rect.Width()/10;
m_listctrl.InsertColumn(0,"ORDERNO",LVCFMT_LEFT,ctl);
m_listctrl.InsertColumn(1,"MOLDNO",LVCFMT_LEFT,ctl);
m_listctrl.InsertColumn(2,"OD TYPE",LVCFMT_LEFT,ctl);
|
|
|
|
|
yes its working for me.
Might be width problem, set it manual.
|
|
|
|
|
Hi
While Debugging i m gettin error in
m_listctrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
code itself
|
|
|
|
|
|
Assertion Error!!!
Where u writing the code
OnCreate or OnShowWindow()????
|
|
|
|
|
Hi
I m using splitterwndow.
left view consists of treeview with various items..
right view contains frame windows that appears when cliking an item in treeview..
With this type we can use our listcontrol right?
|
|
|
|
|
Hi,
How to remove menu of a running application through another application?
|
|
|
|
|
I am trying to establish TCP/IP communication between DSP board(that runs Code Composer Studio, an IDE to compile and run C code) and host PC(that runs VC++ application)
While sending the data from CCS to VC, sometimes "Retransmission Timeout" error occurs, and at other instance "Persist Timeout" occurs, after this timeout the transmission stops.
How to address these errors in VC++ MFC code. (CAsyncSocket class and the member functions are used for reception of data at VC++ end)
|
|
|
|
|
suchithra, from your post, I can understand the problem wel, but you didn't mentioned whether you were using any wired/wireless communication. Look, I have done so many programs for interfacing, establishments of communications for different mechatronic devices etc. & faced lots of probs. The best practice would be throughing Exceptions, so that you can understand where the problem is. I rather suggest you-
1. Use UDP protocol other than using TCP/IP protocol.
2. If you are sending bulk data, then check for stack overflow
3. Try to Impliment of your own timeout block or extend socket timeout value
4. Swap your globally stored data to local veriable, so that before every recieve, your global block should be cleaned.
5. Check your h/w connection for communication.
"Retransmission Timeout" error occurs:
1. It means either no data is being recieved by your VC++ aps(use Exceptions to check atallit recieve any data from sender or not) or it recieves few data, after that communication lost (cause by stack overflow/ h/w issue), which is quite obvious in TCP/IP protocol for large data transfer. Use UDP only.
|
|
|
|