Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Button down increment Pin
Mark Salsbery25-Jun-07 17:47
Mark Salsbery25-Jun-07 17:47 
GeneralRe: Button down increment Pin
Mark Salsbery25-Jun-07 17:50
Mark Salsbery25-Jun-07 17:50 
AnswerRe: Button down increment Pin
John R. Shaw25-Jun-07 20:44
John R. Shaw25-Jun-07 20:44 
QuestionConverting project from VC++ 6.0 to Visual Studio 2005 [modified] Pin
al250025-Jun-07 9:41
al250025-Jun-07 9:41 
AnswerRe: Converting project from VC++ 6.0 to Visual Studio 2005 Pin
al250025-Jun-07 10:52
al250025-Jun-07 10:52 
QuestionCreating threads Pin
tom groezer25-Jun-07 8:56
tom groezer25-Jun-07 8:56 
AnswerRe: Creating threads Pin
led mike25-Jun-07 9:32
led mike25-Jun-07 9:32 
QuestionWhile debugging linker can't open *.exe file because it still is in use Pin
knapak25-Jun-07 8:35
knapak25-Jun-07 8:35 
Hello

I'm debugging code created using another programming environment (called AD model builder or ADMB) that generates C++ code. To do this, I have to make the following changes in the project settings:

- Add program_name.tpl to your project. Where program_name.tpl is some sort of template (not in the sense of C++ templates) that has the original code that is then translated to C++.

- Click on program_name.tpl then on the Project menu, choose settings, in the Custom Build tab, Commands window, add:
C:\ADMB\BIN\TPL2CPP.EXE $(InputName)
move $(InputName).htp $(WkspDir)
In the Output window put:
$(InputName).cpp

TPL2CPP.EXE is the aplication that translates the ADMB template into C++.

(a) When creating the new project create a blank 32 bit Windows console application in the folder where the source files are.

(b) In Project/Settings/C++/Code generation, ensure that the runtime library is Debug single-threaded.

(c) In Project/Settings/C++/Preprocessor/Preprocessor definitions add __MSVC32__ to the list so the list is: WIN32,_DEBUG,_CONSOLE,_MBCS,__MSVC32__

(d) In Project/Settings/ C++/Preprocessor/Additional include directories add the folder where the ADM include files are, as well as the source folder for the current program e.g. c:\admodel\include,c:\admodel\examples\kalman-filter

(e) In Project/Settings/Link/General delete the Object/library models shown and add the ADM ones: admod32.lib adt32.lib ads32.lib

(f) In Project/Settings/Link/Input add the ADM library folder - e.g. c:\admodel\lib

Then, while debugging the code, if I have to make changes to the program_name.tpl file and try to recompile the resulting C++ it compiles OK but the linker can't access the exe file for modification because apparently is still in use even when I stop debugging clicking on the "stop debugging" button.... Then I tried deleting the exe file but got a message that it is in use by another application but it doesn't show up neither in the applications or processes running in the system... pretty weird... Any ideas about why this is happening and how to solve it?

Thanks
QuestionShortcut key? Pin
dSolariuM25-Jun-07 6:43
dSolariuM25-Jun-07 6:43 
AnswerRe: Shortcut key? Pin
Cyrilix25-Jun-07 7:05
Cyrilix25-Jun-07 7:05 
AnswerRe: Shortcut key? Pin
James R. Twine25-Jun-07 8:44
James R. Twine25-Jun-07 8:44 
QuestionDebug Problem Pin
VC_RYK25-Jun-07 4:22
VC_RYK25-Jun-07 4:22 
AnswerRe: Debug Problem Pin
Cedric Moonen25-Jun-07 4:40
Cedric Moonen25-Jun-07 4:40 
GeneralRe: Debug Problem Pin
VC_RYK25-Jun-07 4:46
VC_RYK25-Jun-07 4:46 
AnswerRe: Debug Problem Pin
led mike25-Jun-07 4:41
led mike25-Jun-07 4:41 
GeneralRe: Debug Problem Pin
VC_RYK25-Jun-07 4:46
VC_RYK25-Jun-07 4:46 
GeneralRe: Debug Problem Pin
led mike25-Jun-07 4:59
led mike25-Jun-07 4:59 
AnswerRe: Debug Problem Pin
Cyrilix25-Jun-07 4:45
Cyrilix25-Jun-07 4:45 
Questiongenetic algorithm or particle swarm algorithm with VC++ or Malab Pin
gentleguy25-Jun-07 3:41
gentleguy25-Jun-07 3:41 
Questionis it possible to set a menu to CWnd etc? Pin
includeh1025-Jun-07 2:32
includeh1025-Jun-07 2:32 
AnswerRe: is it possible to set a menu to CWnd etc? [modified] Pin
Rajkumar R25-Jun-07 2:44
Rajkumar R25-Jun-07 2:44 
QuestionReportEvent Pin
Yashusid25-Jun-07 1:02
Yashusid25-Jun-07 1:02 
AnswerRe: ReportEvent Pin
Rajkumar R25-Jun-07 2:16
Rajkumar R25-Jun-07 2:16 
GeneralRe: ReportEvent Pin
Yashusid25-Jun-07 2:49
Yashusid25-Jun-07 2:49 
AnswerRe: ReportEvent [modified] Pin
Rajkumar R25-Jun-07 3:16
Rajkumar R25-Jun-07 3:16 

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.