|
i cant change anything in the header file
all my work will be on the source file only
|
|
|
|
|
Hi everyone
I have three questions
1.why do I need to use of TEXT macro in my codes and if I remove it compiler shows error
2.why CreateProcess cant open test.txt while second parameter is command line and I have to write full path ("c:\\notepad.exe c:\\1.txt")
3.Do I need to use of WaitForSingleObject
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof (STARTUPINFO);
GetStartupInfo (&si);
si.dwFlags = STARTF_USESHOWWINDOW |STARTF_TITLEISAPPID ;
si.wShowWindow = SW_SHOWMAXIMIZED;
si.lpTitle=TEXT("Test");
if(CreateProcess(TEXT("c:\\notepad.exe"),TEXT("c:\\test.txt"),NULL,
NULL,FALSE,NULL,NULL,NULL,&si,&pi))
{
//WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
}
Thanks
|
|
|
|
|
messages wrote: 1.why do I need to use of TEXT macro in my codes and if I remove it compiler shows error See here.
messages wrote: 2.why CreateProcess cant open test.txt while second parameter is command line and I have to write full path ("c:\\notepad.exe c:\\1.txt") Do you understand the difference between absolute vs. relative paths?
messages wrote: 3.Do I need to use of WaitForSingleObject Only if you need to wait.
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Do you know your answers are great?
Thanks
|
|
|
|
|
Hi
I have to program, one is in c++ I have compiled with VStudio 2010, and one in c compiled in gcc.
In c program, I need data which come from c++.
how to export data from c++ to C? does any one have the sample code for this one?
thankyou
|
|
|
|
|
Data is data, it has nothing to do with what language is used to process it. Please try and explain your problem in more detail.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have a program in C++ compile with Visual Studio 2010. This program is to get data from joystick, this joystick will control robot in server pc.
in this client PC I have udp client server in C compile with gcc.
I need to pass data from joystick program to udp client program.
How can I do that? data is in char format, and input udp have the same format.
are there any source code example to do that?
|
|
|
|
|
Make a socket connection and send the data, suitably formatted, to your client. I don't understand what the problem is here, transferring data between clients and servers is how the entire world is run these days.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have udp server client connection it is in C program, but the problem is, that my joystick program in client is in C++, I want to pass C++ data to client C program.
thank you
|
|
|
|
|
There is no such thing as "C++ data", data is data, it's just a series of bytes. I cannot see how you are able to write C and C++ code and, apparently, understand UDP client/server, and yet do not understand this basic concept.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
|
Hi all,
Can any one tell me How to overlay text over a video available, using Linux Commands.
I have tried with ffmepg tool, But I can't able to make it possible.
The Command I used was,
ffmpeg -i Input.avi drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text=HelloWorld:fontcolor=red@1.0:fontsize=70:x=00: y=40" -y Output.avi
An Error Message i got:
Unable to find a suitable output format for 'drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text=HelloWorld:fontcolor=red@1.0:fontsize=70:x=00: y=40'
Please let me know, How to work it out or some other Linux tool to overlay a text over Video.
Expecting for the best reply soon
Thanks & Regards
Srivathsan.K.R
|
|
|
|
|
This is the C++ forum please try elsewhere.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Looking at the documentation xlSheetVisible property
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)
does this mean this property is exposed in excel.dll if so I only have the executable
thanks
|
|
|
|
|
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I am thinking I have to have some dll where this
Method is exposed
|
|
|
|
|
Yes, and you already showed that information in your original question; it is part of the Office interop. However, you need Microsoft Office installed on your system in order to access it. What exactly are you trying to do, and is this really a C++ question?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
OLE programming and since at work I cannt down load anything I want I am guessing what I am looking for is in nativeexcel.dll
The only thing I have on my machine is excel.exe
|
|
|
|
|
ForNow wrote: The only thing I have on my machine is excel.exe Then you should have the required DLL's also. Have a look here[^] for some suggestions.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi ALL!
VC++6.0, XP SP3, MFC Dialog-based App.
Adding a next item to the menu I've suddenly got a message "Out of memory. Unable to complete command". After restart it's impossible to load project clicking .DSW file: workspace stays empty, no files loaded.
Killing of the .CLW solves the problem for an one session. After I restart project, it again doesn't work, need delete .CLW again.
Now, I cannot add a menu item. Currently there are about 1000 items in the menu. I have a bad suspicion that may be there is a LIMIT for the wizard when it adds a menu item?
Please, any ideas how to add items?
|
|
|
|
|
Member 708172 wrote: Currently there are about 1000 items in the menu. Seriously? How do you expect anyone to navigate such a maze? You should rethink your design.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
There's really no reason why you should have that many items in a menu. You're at a point where no person would want to navigate through that.
|
|
|
|
|
Member 708172 wrote: Currently there are about 1000 items in the menu.
VS, every user of your program, the universe and life itslef probably hates you for that.
|
|
|
|
|
I have no questions about design. I have questions about fight the wizard in VC6.0
-------------------------------------
PS. This project isn't bubbleshooter or a text processor. Therefore its menu doesn't consist of Help->About only.
This project operates with cars, that are splitted by models. Do you know how many car models in the world?
No, you don't, but somehow you are sure that our users are not happy to navigate through this menu.
Who from you solved a problem to combine over 1000 cars in an one project? Nobody. But all seems that they are guru in this question... OK, I'm listening you, make your suggestions...
|
|
|
|
|
Well, don't put every single model into the menu but just the highest hierarchy level. Open a sub dialog with a ComboBox (or several if there are more sub levels) and add only the items apllicable for the current parent level. This should cut down your memory usage.
|
|
|
|