|
I want to write a function in VC++ which will create a table(in a new mdb file) in MsAccess and also fill the table with values in the same function. As for creating the database i have to use msadox.dll and for populating database i have to use msado15.dll. But if i import both these dlls i get the following error.
< error C2011: 'DataTypeEnum' : 'enum' type redefinition >
This is probably due to DataTypeEnum being defined in both msadox.tlh and msado15.tlh.
Is there any way in which i can use both the dlls
or any other way i can create and populate the table in same function.
Note :(I got to create database in Access 2000)
With Regards,
Kaustubh
|
|
|
|
|
I did come across this conflict a while back when I needed to use ADO, ADOX and JRO (JET compression).
Try this:
<font color=green>
#pragma warning(push)
#pragma warning(disable:4146)
#import "C:\Program Files\Common Files\system\ado\msadox.dll"
#import "C:\Program Files\Common Files\System\ado\msado15.dll" rename ("EOF","ADOEOF")
using namespace ADODB;
#pragma warning(pop)
I Dream of Absolute Zero
|
|
|
|
|
Hi
i Would like to know How to remove a class from class view in workspace in MFC?
rajesh
|
|
|
|
|
|
Note to self: add "automagically" to vocabulary
I Dream of Absolute Zero
|
|
|
|
|
i tried to statically link the application that i have been developing but its giving an error in map_pp.c. I have no idea why this problem is coming. can anyone help me?
|
|
|
|
|
Hi
ask_you wrote:
can anyone help me?
Yes and no!
NO:
I have no idea about your problem.
YES:
What reports the Compiler / Linker???
- errorcode
- functioncall
- used compiler
- other information
---
Frank
|
|
|
|
|
hi Frank,
sorry, that i misquoted the problem..
the problem does not come when i statically link the application. but when i run the application a system without VC++ installed, it gives the following error:
Debug Assertion Failed:
Program: C:\xyz.exe
File: map_pp.cpp
Line :128
the map_pp.cpp is a MFC file. so i do not where the probwm is. It runs fine on a machine which has VC++ installed in it.
i also want to know if there is some other way other than static linking, such that i can run by application on any windows machine irrespective of whether VC++ is installed on that machine.
Please reply soon,
ask_you
|
|
|
|
|
How to check for a memory leakages for which the memory is allocated by using the GlobalAlloc and LocalAlloc functions.
Regards
Vidya
|
|
|
|
|
CMemoryState can't help you on this as it could only detect new and delete.
How about _CrtMemState, _CrtMemCheckpoint and the supporting APIs used for _malloc_dbg?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Please tell me in detail.......
vidya
|
|
|
|
|
|
I also had seen the same sample in MSDN.
Thanks.....
vidya
|
|
|
|
|
OK, the sample works on GlobalAlloc too.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
HI ,
I need to implement custom print in mshtml i.e iam using my print dialog . I need to know the page range and margins setting. The Exec command takes OLECMDID_PRINT takes these setting in its third parameter.Can anyone tell me how to get it?I need to implement span tag also.
lokiz
|
|
|
|
|
HI .
I WANT TO SEND THE SPECIFICE VALUE TO MY HARD WARE ATTACHED WITH COM PORT .... AFTER SPECIFICE TIME REPETEDLY.
FOR EXAMPLE AFTER EVERY 5 SECONDS I WANT TO SEND A VALUE TO HARDWARE .
HOW CAN I HANDLE IT ( MEANS REPETITION ).
IS IT WITH TIMER ... OR BY CERATING EVENT ...
ANY SAMPLE LINES .. THAT IS BETTER
THANX
|
|
|
|
|
can't you write in lower case ?!
for your problem, set a timer... (SetTimer ())
TOXCCT >>> GEII power
|
|
|
|
|
Hi,
The below function is not working for usergenerated excel files.
AFX_SQL_ASYNC( this, ( ::SQLTables ) ( m_hstmt, strQualifier,SQL_NTS,ustrOwner,SQL_NTS,ustrName,SQL_NTS,ustrType,SQL_NTS ) );
The functions retrieves the parameters if the given excel fiel os genereated by some softwares like DTS but not with the manually generated excel files. Can anyone help me out on this.
Thanks
Chitra
|
|
|
|
|
Try adding a name for your table by doing in excel Insert->Name->Define
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
hi,
how can i get combobox item data?
i used CComboBox::GetItemData(). i dont know how to convert the DWORD value to a string.
any help?
thanks,
jim
|
|
|
|
|
|
"..i dont know how to convert the DWORD value to a string."
Quality!
I know its cruel to laugh at this, but it soo damn funny
I Dream of Absolute Zero
|
|
|
|
|
You cannot directly store string values into the item data parameter of a combo box. You can only store DWORDs (unsigned long), or other valid numeric casts.
What you may be after is the text that you populate the combobox with. In that case you need to call GetLBText() .
e.g.:
<font color=green>
CString strText;
int nSel = m_ComboBox.GetCurSel();
if( m_ComboBox.GetLBText(nSel, strText) != CB_ERR )
{
std::cout<< (LPCTSTR)strText << std::endl;
}
I Dream of Absolute Zero
|
|
|
|
|
Hi,
After installing a WINZIP which adds it's option in WINDOWS default right-click menu. i.e. whenever we select any file and right-click then we see the WINZIP option in MENU.
I want to add my own option in WINDOWS right-click menu just as of WINZIP.
Is there any idea ?
Thanks in advance.
|
|
|
|
|