having trouble passing arguments to a C++ program which is calling a DLL

having trouble passing arguments to a C++ program which is calling a DLL

Post by Chri » Thu, 16 Dec 2010 11:00:28


Thanks for your response James. A Matlab expert answered my question and his response is below:

The problem is that you are changing the wrong function. The
function “run_main” is not the function that has access to the command
line. The function that is the entry point to the program is “main”. It
is in the same driver file, below the “run_main” function. The “main”
function calls “run_main”.

If the user wants the application to accept command line input, they will
need to change the function signature to main, and then pass the command
line arguments from main into run_main. The MATLAB Compiler
functionmclRunMain< http://www.yqcomputer.com/ ;
allows you to pass the arguments.

-------------
 
 
 

1. How could I ask Thread B to call B().Method() from inside Thread A's run?

2. How could I ask Thread B to call B().Method() from inside Thread A's run?

I agree with jmj's solution, you would want to send a signal of some
sort to Thread B from A when some event occurs in A. A queue is one
way to do it, but keep in mind that there are numerous ways to
communicate between threads/processes (queue, pipe, exit status,
TCP/UDP message, etc.). I believe one of the first couple chapters in
O'Reilly's "Programming Python" book discusses most of these methods.
Choose the simplest one that meets your needs.

3. Add/Remove Programs - A's only

4. Including .so's and .a's in my program

5. Error when C# is calling C++ dll which calls another C++ dll

6. Error when C# calls C++ dll that calls another C++ dll

7. Copy all data from a:Class A's fields to the namesake fields of b:Class B.

8. Summing N/A's

9. Finding the Value (of text and numbers) between N/A's

10. Try Again / VLOOKUP without N/A's

11. Sending E-mail A's another user (Sent Items)

12. Host would occasionally fail to resolve A's rec.Help!

13. Printing report b after report a prints using report a's variables

14. Capture image of App#A's window from App#B

15. using "if" but omitting the #n/a's