|
You only need to make the posted import statement.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi Karsten,
i tried with the import directive statement which u posted but i am getting errors with dom interfaces redefinitions....
Thanks A Ton
Ash_VCPP
|
|
|
|
|
Are you prefixing the right namespace? At times it requires you to prefix it to avoid ambiguity from other versions.
like MSXML2::IID_IXML..
Also,"Redefinition", I guess you are facing some clash with particular names. Check which one creates the clash, and you could use attributes to solve it ,something like :
#import <msxml3.dll> named_guids rename("value","xmlvalue")
</msxml3.dll>
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
i tried with the same but it is giving me error.....
error C2039: 'IID_IXMLDOMElement' : is not a member of 'MSXML2'
Thanks A Ton
Ash_VCPP
|
|
|
|
|
#if !defined(AFX_UTI_H_INCLUDED_)
#define AFX_UTI_H_INCLUDED_
im seeing the above error when i add the above tag in my header file....
May i know what the below lines indicate..
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
Please help me out....pls ignore my innocense...as im a beginner...
modified on Friday, March 13, 2009 4:57 AM
|
|
|
|
|
p_1960 wrote: #if !defined(AFX_UTILITY_H_INCLUDED_)
#define AFX_UTILITY_H_INCLUDED_
Well the error message says it all: you should add an #endif :
#if !defined(AFX_UTILITY_H_INCLUDED_)
#define AFX_UTILITY_H_INCLUDED_
#endif // AFX_UTILITY_H_INCLUDED_
p_1960 wrote: #ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
See [^], [^].
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]
|
|
|
|
|
when im trying to use ..
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
in my Uti.cpp file.. im able to see below errors...
1)Uti.cpp(9) : error C2628: 'Uti' followed by 'char' is illegal (did you forget a ';'?)
2)Uti.cpp(9): error C2075: 'THIS_FILE' : array initialization needs curly braces
3)CheckListBox.cpp(105): error C2664: 'AfxAssertFailedLine' : cannot convert parameter 1 from 'Uti []' to 'LPCSTR'
at CCheckListBoxlg::OnInitDialog()
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
4)Uti.cpp(28): error C2665: 'operator new[]' : none of the 5 overloads can convert parameter 2 from type 'Uti []'
at
LPTSTR lpBuffer;
lpBuffer=new TCHAR[1000];
Please help me out..
|
|
|
|
|
Where 'Uti' comes from? Please post your code (i.e. the top part of you header file).
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]
|
|
|
|
|
|
p_1960 wrote: #include ;
Remove it.
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]
|
|
|
|
|
#include "stdafx.h"
#include "string.h"
#include "Uti.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
Sorry that #include; was not there i typed wrongly...now please why the errors are coming..the above is the right one..
|
|
|
|
|
I suppose the problem is inside your Uti.h .
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]
|
|
|
|
|
yes...thanks for ur reply.....
i have one more doubt...if possible please try to calrify...
im using CCheckBoxList..and im poulating the checkboxlist based on an ini file...and in a loop im trying to check all the checkboxes using Setcheck method but one of checkbox is not checked when i see the output...ie when i debugged thru the loop in which im setting checkboxes im able to see every checkbox is checked but when it comes out of the loop one of the checkbox is not checked....i think it is rearranging checkboxes based on alphabetical order but why it"s not checked....?
|
|
|
|
|
Without code is a hard guess.
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]
|
|
|
|
|
ok..the below is the code...is present in oninitDialog..
CCheckListBox mchk;
mchk.ResetContent();
mchk.SetCheckStyle( BS_AUTOCHECKBOX );
mchk.AddString("All");
mchk.SetCheck( 0, 1 );
CString csage;
///im retrieving section keys of ini file into this vector...
std::vector<cstring> Key;
///im retrieving values of keys into this vector...
std::vector<cstring> Values;
for(int i=0;i<key.size();i++)>
{
csage=Values[i];
mchk.AddString(csage);
mchk.SetCheck( i+1, 1 );
}
the problem is i need to have "All" always as the first checkbox and some of the checkboxes are not getting checked...may be they are getting sorted but i need them to be checked ......
ie if i have a value "adidas" that is assigend to first checkbox which is not desired as always "All" should be the first checkbox..
|
|
|
|
|
Hi all,
I used Access Database from ODBC connection in *.mdb form.
and drive the class from CRecordset.
Access file name is Test.mdb,and here 2 tables are created.
i have one problem.If i m created another access file with same name like Test.mdb and replace it by oroginal one.
than inside a code how can i know it is my access file or not.
please help me hor this.
Thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi,
How can I resize a property sheet?
Also how can I resize a splitter inside a sheet.
Ex: For Windows explorer like view
thanks in advance...
Dave
|
|
|
|
|
|
Hi,
The methods specified in the above link doesnt support in vs2005 or 08;
I think those are for VC6
So, if any body knows how to resize the property sheet in 05 or 08 let me know!
Thanks...
Dave
|
|
|
|
|
What's the difference between import liberary and static program liberary, they seems to have the same suffix(.lib)?
Can somebody provide me the explicit demonstration of lib file. BTW, i have learnt PE format already.
|
|
|
|
|
When you compile a file called, say, "A.cpp", you normally get an output file called "A.obj". Essentially a .lib file is a library that contains multiple .obj files. Historically there was a separate command for creating them. If you've studied the PE file then you're already know most of what you after. See here[^].
Steve
|
|
|
|
|
And an import library contains the signatures of the exported functions and the name of the DLL file that contains the actual implementation.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
thanks!
why lib is smaller than dll?
if lib is the combination of all objects, and dll also a combination of all objects(some have been allocated though), dll should be equal of smaller in size than lib.
And are you saying import liberay and static program liberary are exactly the same?
|
|
|
|
|
lib doesn't contain any "logic" inside. It's just a dummy. It contains information about the exported symbols from the dll. How will it have the same size of the dll then? But if it's a static library, yes, it will have brains and the size will be big. Unlike a dll, this static libraries get "fixed up" to the executables. But I guess you aren't concerned about the latter.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
VuNic wrote: lib doesn't contain any "logic" inside.
That's not necessarily true. Import libraries just contain, essentially, function names and the name of the containing DLL, so it’s true in that case. However, the “other” sort of lib file contains machine code and data.
Steve
|
|
|
|