Click here to Skip to main content
16,015,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan10-Jan-23 6:42
mveRichard MacCutchan10-Jan-23 6:42 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 8:12
coco24310-Jan-23 8:12 
GeneralRe: Where to find connect declaration of this mysql instace Pin
markkuk10-Jan-23 2:27
markkuk10-Jan-23 2:27 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 4:11
coco24310-Jan-23 4:11 
AnswerRe: Where to find connect declaration of this mysql instace Pin
RedDk8-Jan-23 9:12
RedDk8-Jan-23 9:12 
Questiondll access violation with Excel 32 / 64 bits Pin
Danilo Lemos 20216-Jan-23 1:30
Danilo Lemos 20216-Jan-23 1:30 
AnswerRe: dll access violation with Excel 32 / 64 bits Pin
Victor Nijegorodov6-Jan-23 5:49
Victor Nijegorodov6-Jan-23 5:49 
QuestionLinker error when adding Ole to my application, what am I missing? Pin
charlieg4-Jan-23 16:15
charlieg4-Jan-23 16:15 
I'm trying to get some code to run to work around another issue, and for the life of me, I cannot make the VS2008 linker happy.
This is for a smart device, Windows Embedded Compact 7, but I think the target is only a symptom. I've tried this against 3 different SDKs for VS2008 as well as EVC++ (going way back) and two different SDKs - all have the same issue.

I need the application to run OLE. So, I created a very simple dialog app - think default code base, C++. It compiles and links. I then add one call: "OleInitialize(0);" and I get this:

Quote:
1>Linking...
1>OleTest.obj : error LNK2019: unresolved external symbol OleInitialize referenced in function "public: virtual int __cdecl COleTestApp::InitInstance(void)" (?InitInstance@COleTestApp@@UAAHXZ)


You can say I need to add an input to the linker line for ole32.lib, but it still fails. Oddly, VS2008 shows that I've inherited these from the solution. Of course the desktop links fine.

Any random or "oh crap, yeah, I had that problem" ideas? It's almost as if the ole32.lib doesn't have OleInitialize. I could believe that for one SDK but not 5.
Charlie Gilley

“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

Has never been more appropriate.

AnswerRe: Linker error when adding Ole to my application, what am I missing? Pin
CPallini4-Jan-23 22:14
mveCPallini4-Jan-23 22:14 
GeneralRe: Linker error when adding Ole to my application, what am I missing? Pin
charlieg6-Jan-23 5:07
charlieg6-Jan-23 5:07 
QuestionRe: Linker error when adding Ole to my application, what am I missing? Pin
Randor 5-Jan-23 16:41
professional Randor 5-Jan-23 16:41 
AnswerRe: Linker error when adding Ole to my application, what am I missing? Pin
charlieg6-Jan-23 10:17
charlieg6-Jan-23 10:17 
GeneralRe: Linker error when adding Ole to my application, what am I missing? Pin
Randor 6-Jan-23 10:40
professional Randor 6-Jan-23 10:40 
Questionhow to interact with access control and open the door from My c++ desktop application Pin
Zouaoui Billel31-Dec-22 4:58
Zouaoui Billel31-Dec-22 4:58 
AnswerRe: how to interact with access control and open the door from My c++ desktop application Pin
Richard MacCutchan31-Dec-22 5:11
mveRichard MacCutchan31-Dec-22 5:11 
QuestionMessage Closed Pin
27-Dec-22 9:31
Member 1496877127-Dec-22 9:31 
AnswerRe: How to link C code to which Bluetooth library ? ( Linux) Pin
k505427-Dec-22 10:30
mvek505427-Dec-22 10:30 
AnswerRe: How to link C code to which Bluetooth library ? ( Linux) Pin
Richard MacCutchan27-Dec-22 22:03
mveRichard MacCutchan27-Dec-22 22:03 
QuestionInsert a Container App Pin
Glenn Meadows 202227-Dec-22 5:07
Glenn Meadows 202227-Dec-22 5:07 
AnswerRe: Insert a Container App Pin
Richard MacCutchan27-Dec-22 22:06
mveRichard MacCutchan27-Dec-22 22:06 
SuggestionRe: Insert a Container App Pin
David Crow28-Dec-22 4:49
David Crow28-Dec-22 4:49 
QuestionHaving trouble with a function in C Pin
BuilderboiYT26-Dec-22 15:38
BuilderboiYT26-Dec-22 15:38 
AnswerRe: Having trouble with a function in C Pin
Victor Nijegorodov26-Dec-22 20:12
Victor Nijegorodov26-Dec-22 20:12 
AnswerRe: Having trouble with a function in C Pin
Richard MacCutchan26-Dec-22 22:10
mveRichard MacCutchan26-Dec-22 22:10 
AnswerRe: Having trouble with a function in C Pin
Mircea Neacsu26-Dec-22 22:34
Mircea Neacsu26-Dec-22 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.