Peruttu

Assistance with global object in C++ dll

Attached is a simple dll with a CodeBlocks project using MingW. It uses the Vole library to call a COM object ([url removed, login to view]).

I have run into a stumbling block in that the object g_pTradeDesk2 needs to be global so it can be accessed from other dll functions (such as the FXCMSecond). However, Vole won't allow the creation of an object and then an assigning of what that object is in two steps. Compile the enclosed sample and change the line that reads:

object g_pTradeDesk2 = oCore.invoke_method<object>(L"CreateTradeDesk", L"trader");

to this:

g_pTradeDesk2a = oCore.invoke_method<object>(L"CreateTradeDesk", L"trader");

This will error out since g_pTradeDesk2a is the global variable that needs to be global (in some method).

This is a simple task for a seasoned C++ programmer, but I cannot get past it.

Thanks!

Taidot: C-ohjelmointi

Näytä lisää: call dll global, object, global , dll, c dll, call method, net object error, global error, object method, sample dll, dll sample, object project, simple dll, project dll, object creation, call block, compile dll, trader programmer, block dll, programmer task, net dll creation, dwmcqueen, sourceforge, simple creation project, mingw vole

About the Employer:
( 149 reviews ) Platte City, United States

Projektin tunnus: #511641

8 freelanceria on tarjonnut keskimäärin 59 $ tähän työhön

vishumalka

I have more than 3+ years of experience in C++. I can do this ASAP.

150 $ USD 3 päivässä
(5 arvostelua)
1.9
RossKim

Hi. Can be done successfully. thanks.

100 $ USD 3 päivässä
(1 arvostelu)
1.3
ppitu

I am sure this problem has a solution; I will do my best to find it.

50 $ USD 2 päivässä
(1 arvostelu)
1.0
citronfrais

Shall look into it and get back to you if it is done.

30 $ USD 4 päivässä
(1 arvostelu)
2.8
lyjbupt

Let's start to save time.

50 $ USD 3 päivässä
(0 arvostelua)
0.0
TipofIceberg

Hello. I can do this project. I am an expert in dll. Ready to go. Regards.

30 $ USD 1 päivässä
(0 arvostelua)
0.0
Barrett

I can help you, this is a simple job.

30 $ USD 1 päivässä
(0 arvostelua)
0.0
passion411

experts of c++ languages especially in dll. give me the chance to work with you. regards

30 $ USD 0 päivässä
(0 arvostelua)
0.0