|
|
Use dependency walker, to see if all exported functions you can see in exported functions list. I know this is not going to help, but this is just to check whether everything is alright while exporting.
|
|
|
|
|
Well thanx for the reply Prasad.
I use dependency walker alot and if I could paste a pic here you would see that all the functions are displaying and looks correct.
I'm not using a class with all these functions, would there be like a limit on the amount of functions one can export. (Which I don't think would be the case) ??
The only programmers that are better than C programmers are those who code in 1's and 0's.....
 Programm3r
|
|
|
|
|
Quick google search suggest, problem occurs when newer version is required( function called is not present in dll).
Can you show how you called this function.
|
|
|
|
|
Ok, this is what I did in my test application (who's calling the dll).
Included the header file.
Under properties -> link added the .lib file.
Copied the .dll file to the root folder of the application.
<code>
bool retcode = fasle;
char* proc_name = "c:\\program files\\winamp\\winamp.exe";
retcode = createAProcess(proc_name);
if (retcode)
{
....
</code>
After all of this I receive the error mentioned earlier.
The only programmers that are better than C programmers are those who code in 1's and 0's.....
 Programm3r
|
|
|
|
|
 If this might help, I did a dumpbin /exports on the dll and the result is shown below:
File Type: DLL
Section contains the following exports for ElkoUtility32.dll
00000000 characteristics
45334FDA time date stamp Mon Oct 16 11:24:42 2006
0.00 version
1 ordinal base
34 number of functions
34 number of names
ordinal hint RVA name
14 0 00001740 CharacterAt
1 1 00001000 DllMain
15 2 00001750 authentication
32 3 00002920 changeIcon
16 4 00001950 controlPanelDlg
34 5 00002AD0 createAProcess
8 6 000013F0 createDSN
28 7 00002020 createMTPipeSrv
29 8 000021F0 createOLPipeSrv
22 9 00001C80 decryptAFile
21 A 00001C60 encryptAFile
33 B 00002A40 errorExit
5 C 00001210 error_out
12 D 00001590 fileHandler
20 E 00001C40 getWindowProcessId
25 F 00001D90 makeSlot
23 10 00001CA0 messageBeeper
24 11 00001D30 netValidate
27 12 00001E80 readSlot
30 13 000026A0 regEntry
31 14 00002860 regStartUp
18 15 00001B00 restartWindows
11 16 00001530 restoreWnd
10 17 00001430 seekProgram
9 18 00001410 showProgramVersion
19 19 00001B80 shutdown
2 1A 00001050 sqlconn
4 1B 000011D0 sqldisconn
7 1C 00001010 sqldsn
3 1D 000010E0 sqlexec
6 1E 00001290 sqltest
13 1F 000015F0 userNameSize
17 20 00001A00 validUserName
26 21 00001DE0 writeSlot
Summary
8D000 .data
2000 .rdata
2000 .reloc
1000 .rsrc
A000 .text
The only programmers that are better than C programmers are those who code in 1's and 0's.....
 Programm3r
|
|
|
|
|
It looks ok.
I feel , you are missing something very simple. Just last try, make sure, you rebuild you dll with added functions. make sure you copy updated .lib and .dll in correct folder.
|
|
|
|
|
Thank you for the help Prasad, someone else gave me the same answer on the MSDN forum and I got it working.
The only programmers that are better than C programmers are those who code in 1's and 0's.....
 Programm3r
|
|
|
|
|
cheers !
|
|
|
|
|
hi,
Since i am new to vc++ i want to know the entire procedures for using a tab control and progress bar in a dialog box.Starting from the initiallizing state till the working of progress bar and tab control using activex control in MFC.
I saw MSDN for reference but i dont know how to proceed with it.
Plz help me out,its v.urgent
Thanx in Advance,
zari
|
|
|
|
|
|
In a MFC active x control application , I have created a dialog box and placed a tab control in that now how to proceed???????????
zari
|
|
|
|
|
|
Hi Friends,
Following error is troubling me from last couple of days, I am looking for some help from the group
I am doing following steps:
1. Adding a dialog box with ID=IDD_DLG_ORG_IMAGE in the SDI application
2. Adding class using class wizard with class name ‘COrgImgDlg’ derived from ‘CDialog’ for the above created dialog
3. After Compiling a code I am getting following error
--------------------Configuration: IP - Win32 Debug--------------------
Compiling...
MyTabCtrl.cpp
e:\dinesh\ip\orgimgdlg.h(23) : error C2065: 'IDD_DLG_ORG_IMAGE' : undeclared identifier
e:\dinesh\ip\orgimgdlg.h(23) : error C2057: expected constant expression
Error executing cl.exe.
IP.exe - 2 error(s), 0 warning(s)
Following is the part of the orgimgdlg.h file where I am getting error
class COrgImgDlg : public CDialog
{
// Construction
public:
COrgImgDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(COrgImgDlg)
enum { IDD = IDD_DLG_ORG_IMAGE };
// CMyTabCtrl m_ImageTabs;
//}}AFX_DATA
Please help me out I am not understating why this error is occurring in the same header file of the dialog.
Thanks and Regards,
-Dinesh
|
|
|
|
|
Check whether, dilaog you wnat to base class upon is having id IDD_DLG_ORG_IMAGE .
And resource.h is included appropriately .
|
|
|
|
|
Did you include Resource.h
|
|
|
|
|
What #include directives do you have at the top of orgimgdlg.cpp and orgimgdlg.h ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am trying to do this steps but i am not able to see the "new ATL object in my project,can anybody help me what went wrong.....
Insert > New ATL Object > Data Access > Consumer. It will ask you for a data source, select the data source which you have made with ODBC.
from the source http://www.codeproject.com/database/YulOLEDBdatabase.asp[^]
|
|
|
|
|
abrakadbra wrote: I am trying to do this steps but i am not able to see the "new ATL object in my project
What you want to say. There is no menu "New ATL object". Which version of VS you are using ?
|
|
|
|
|
vc6 and that is not present there
|
|
|
|
|
Maybe you need to ATL OLE DB Consumer Wizard
|
|
|
|
|
|
|
sorry to ask you silly question but how to get this wizard....can you pls help me in simple words
|
|
|
|
|
You dont need to say sorry
Right click on project in solution window and select Add Class>then select ALT OLEDC Consumer
|
|
|
|