|
have you tried putting the entire path inside double quotes ?
csPath = "\"C:\\what ever\\file.exe\"";
just a thought.. don't know if it'll work or not
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Thanks for the answers everyone. I moved to using CreateProcess() which just accepts a path like:
CString path = _T("\"c:\\path with spaces\\file.exe\"");
with _spawnl() I had to put quotes around every path element with spaces in it like so:
CString path = _T("c:\\\"path with spaces\"\\file.exe");
|
|
|
|
|
hi all
i need to display text with halo effect can any one help me out with this.
please help
regards
pradish
thanks in advance
|
|
|
|
|
I have to crete tooltips in Win32 SDK.I am going to use this in AutoCAD.
When i put a cursor on any part of drawing of autocad it should show some relevant information.So i am using tooltips.So how should i proceed?
Thanks,
Amruta.
|
|
|
|
|
|
g'day all
i am writing a app in win32 i am drawing a rectangle on the desktop while the app is minimized in the task i am using the rectangle function to draw the rect the problem is how do i structure the program to respond to the mouse move which is not on the app window the rectangle also needs to be moved when the mouse moves i already have figured this part out
thanks
|
|
|
|
|
see if SetCapture[^] solves your problem, or else check with hooks[^] if they help.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
If you're already drawing a rectangle on the desktop when your app is minimized, then you already have a solution.
Otherwise you could write a system-wide mouse hook.
« Superman »
|
|
|
|
|
Hi,
I was wondering if any of you know how to open microsoft word in C++? i need to pass strings out to a template word document to fill in.
Much thanks,
(john.parr@logicacmg.com)
I know the VB script method:
'Used to open word and populate CD label values in a word template'
Dim oWordApp
Dim oWordDoc
Set oWordApp = CreateObject("Word.Application")
If oWordApp Is Nothing Then
MsgBox "Couldn't start Word."
Else
oWordApp.visible =true
Set oDoc = oWordApp.Documents.Add("C:\cdtemplate.dot")
with oDoc
.bookmarks("mainTitle1").Range.text="HELLO"
.bookmarks("subTitle1").Range.text="TEST_DATA, PLAN_TEST - 393"
End If
|
|
|
|
|
You'll need to use automation. Make a search on the MSDN site (here[^]) about the subject Word automation.
I think once you get the object, the methods will be the same as in VB.
|
|
|
|
|
How to Get remote/network printer is installed on LPT port or not?
By manan_be_it
I have got the printers who are Local as well as in network. Now i need only those printers in a network installed on LPT Port only.. do send me full CODE, buddies...
tytyttttyty
|
|
|
|
|
Shucks, assuming you used the EnumPrinters function you are already halfway there!
PRINTER_INFO_2 and PRINTER_INFO_5 have a field that already tells you this:
pPortName
Pointer to a null-terminated string that identifies the port(s) used to transmit data to the printer. If a printer is connected to more than one port, the names of each port must be separated by commas (for example, "LPT1:,LPT2:,LPT3:").
Windows 95/98/Me: This member can specify only one port because multiple ports per printer are not supported.
|
|
|
|
|
DisplayString.cpp(21) : error C2065: 'stringArray' : undeclared identifier
DisplayString.cpp(21) : error C2109: subscript requires array or pointer type
DisplayString.cpp(23) : error C2109: subscript requires array or pointer type
for(int i = 0; stringArray[i] != 0; i++)
I'm Using a book called C++ For dummies & I'm sure I copied the code word to word......
Do not go gentle into that good night,
Old age should burn and rave at close of day
Rage, rage against the dying of the light - Dylan Thomas
|
|
|
|
|
I think you forgot to include the header file where stringArray is declared in DisplayString.cpp
|
|
|
|
|
// DisplayString - output a character array to
// standard output, the MS-DOS window
#include <stdio.h>
#include <iostream.h>
// prototype declarations
void displayString(char stringArray[]);
int main(int nArg, char* pszArgs[])
{
char charMyName[] = {'H', 'a', 'n', 's', 'v', 'e', 'e', 'r', 0};
displayString(charMyName);
cout << "\n";
return 0;
}
// displayString - display a character string
// one character at a time
void displayString(char StringArray[])
{
for(int i = 0; stringArray[i] != 0; i++)
{
cout << stringArray[i];
}
}
Could you please tell me what's wrong.... I really cant figure this one out
Do not go gentle into that good night,
Old age should burn and rave at close of day
Rage, rage against the dying of the light - Dylan Thomas
|
|
|
|
|
Psych0hans wrote:
void displayString(char StringArray[])
{
for(int i = 0; stringArray[i] != 0; i++)
{
cout << stringArray[i];
}
}
There is a mismatch between StringArray in the function arguments and stringArray used in the function. Take care of the upper-case of the names.
Change it to:
void displayString(char StringArray[])<br />
{<br />
for(int i = 0; StringArray[i] != 0; i++)<br />
{<br />
cout << StringArray[i];<br />
}<br />
}<br />
|
|
|
|
|
Hey Credic... Thanks for the help....U da man ;)
Do not go gentle into that good night,
Old age should burn and rave at close of day
Rage, rage against the dying of the light - Dylan Thomas
|
|
|
|
|
... here is why IntelliSense is so useful, especially in case-sensitive languages...
use Ctrl+Space into Visual Studio to see what i mean
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
LOL all I get is a really really really really loooooooong drop down menu of which I cant make out heads or tails
|
|
|
|
|
... but when you start writing your word, you'll see what you're looking for appearing...
just magic !
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Ty...... I shall keep this in mind.....
Do not go gentle into that good night,
Old age should burn and rave at close of day
Rage, rage against the dying of the light - Dylan Thomas
|
|
|
|
|
|
Psych0hans wrote:
Rage, rage against the dying of the light
Cool sig
~RaGE();
|
|
|
|
|
TY http://www.feath.com/story/POstory5.htm[^]
For the full poem
Do not go gentle into that good night,
Old age should burn and rave at close of day
Rage, rage against the dying of the light - Dylan Thomas
|
|
|
|
|
Hi all,
I am going to get the physical full name of the computer and also the domain of the network using VC++. Could anyone help?
~~~~ Landy
|
|
|
|