|
Hi all,
I do hope somebody has some experience in this field... We are trying to port a project that we have taken over from another party from Visual Studio 6 to Studio 2008 (since we need to migrate to a 64bit platform). Part of the project uses type libraries. In itself this works fine (except for al the warnings that we need to tackle of course) The problem is that we have a dll A that is #imported into project B. This generates another dll (and type library) We then make a project C in which we #import both dll A and dll B. However, when importing dll B, the linker complains about not being able to find types from dll A (it replaces them with _unknown_ or something)
This all worked fine in studio 6. Has anyone got any idea as to how to tackle this issue. I do assume there is something trivial that needs to be defined, the question is ---what---??
Thanks in advance.
William
|
|
|
|
|
|
CString.Format can help in this! "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Could you explain how i can insert it into my sql query to show how it works?
|
|
|
|
|
try
char* NewTitle = "Monaco";
char* NumofShows = "2"; Failure is Success If we learn from it!!
|
|
|
|
|
Sorry, i do not get u? i mean, how do we insert the variables "NewTitle" and "NumofShows" into the sql statement so it can read the varaibles..
|
|
|
|
|
mysql_query(connection, "INSERT INTO main (NumofShows , Title) VALUES('12', 'Home')")
<br />
char* NewTitle = "Monaco";<br />
char* NumofShows = "2";<br />
<br />
CString InsertQuery= "INSERT INTO main (" + (CString)NumofShows +","+(CString) NewTitle +") VALUES('12', 'Home')";<br />
<br />
mysql_query(connection,InsertQuery);
before that change your project properties unicode into multibyte ..i hope this ll work ..if any error comes send it !!! Failure is Success If we learn from it!!
|
|
|
|
|
mysql_query(connection, "INSERT INTO main (NumofShows , Title) VALUES('12', 'Home')")
Sorry i think you misunderstood what i meant. Normally, for the values, it has to be hardcoded in, for example, having to put 12 and home inside.
What i meant is, for example, if the values to be inserted are in a variable , like ..
string NewShowName = "Danger"
int NewNumberofShow = "2"
How do i put in this variables (NewShowName, NewNumberofShow) into the sql statements at VALUES so the program can read the values inside this variables and then save them in the database
|
|
|
|
|
Might I suggest you will probably get a better response in the Database forum for this question. MVP 2010 - are they mad?
|
|
|
|
|
If you are using MFC, try:
CString strQuery;
strQuery.Format("INSERT INTO main (NumofShows , Title) VALUES('%d', '%s')", number, title); If not, you can use the same format with sprintf() ;"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
What is MFC and what does "%d" and "%s" stands for?
|
|
|
|
|
gregarion wrote: What is MFC...
See here and here.
gregarion wrote: ...what does "%d" and "%s" stands for?
See here."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Im using netbeans. i dont think there are such libraries
|
|
|
|
|
gregarion wrote: Im using netbeans.
So do you have a C or C++ question?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
|
I sense a big failure soon. This signature was proudly tested on animals.
|
|
|
|
|
_sprintf will solve your problem then "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Why did you removed your message ?
Other people cannot learn from your experience because they do not know the question.This signature was proudly tested on animals.
|
|
|
|
|
Hi how to get the language name,how to find the language that the OS is installed say eg : If the OS is Japaness then i should display the language "Japanness"
|
|
|
|
|
TCHAR szBuffer[MAX_PATH] = { 0 };
// Get language name, for eg: English
GetLocaleInfo( MAKELCID( 1033, SORT_DEFAULT ), LOCALE_SENGLANGUAGE, szBuffer, MAX_PATH );
MessageBox( szBuffer );
// Get country name, for eg: United states.
GetLocaleInfo( MAKELCID( 1033, SORT_DEFAULT ), LOCALE_SENGCOUNTRY, szBuffer, MAX_PATH );
MessageBox( szBuffer ); "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi All,
Actually I want to design such a software through which user can access internet safely. If something happen through internet (like virus, etc)that should not be affect to our machine/computer.
Please give any idea to do it?
|
|
|
|
|
john5632 wrote: Please give any idea to do it?
Physically disconnect the machine.
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]
|
|
|
|
|
|
CPallini wrote: Physically disconnect the machine.
and Shutdown power supply "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Use a licensed antivirus software
|
|
|
|