|
thanks for reply which rejistry key need to be changed or added and where to get the inno installer u mean google search.
Tasleem Arif
|
|
|
|
|
this is called registering...
there a plenty of articles, discussions over Codeproject about that subject...
|
|
|
|
|
|
Why re-invent the wheel? There is no need to start writing shell extensions for a simple task like this. The job can be achieved simply by writing 2-4 values into the registry.
|
|
|
|
|
Can anybody tell me how to send a FAX in landscape mode using the FaxSendDocument API.
aasstt
|
|
|
|
|
AFAIK it is not possible. The FaxSendDocument API uses the default print settings for the document type as setup in the registry. It starts the required program with a /pt command line option.
If you are trying to fax your own document from within your own program then take a look at the FaxStartPrintJob API. It supplies a fax device context that you can print to in any form you wish.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Hello , this is Rakesh Here
I am getting one Runtime error when I try to split the main window. Following para describes the situation.
I am having two classes namely CTopSplitter and CNestedSplitter. Through the object of CTopSplitter class I am Splitting the main window into 1 row 2 columns. And then I am trying to Split the second part of the main window into 2 rows 2 columns. But while doing that I get one Runtime error which complains about creating same view again. Even though I am giving the diffrent values in the IdFromRowCol(), I am getting that error.
Please help me out. Should I override the CreateView() method ?
Regards
Rakesh
Rakesh
|
|
|
|
|
Based on the article "How to spawn console processes with redirected standard handles" found at http://support.microsoft.com/default.aspx?scid=kb;en-us;190351
I realize that in order to see whether the spawned process is terminated, the author use the returned code from WriteFile.
If the WriteFile fail to write at the redirected standard handles of another process and the error code is ERROR_NO_DATA, that's mean the pipe was closed through normal child process termination.
However, is there any way to check whether the pipe is still connected to an alived process, without explicitly WriteFile through that pipe.
i.e.
bool IsPipeStillConnectedToAliveProcess (HANDLE pipeHandle);
Thank you very much!
cheok
|
|
|
|
|
Hello,
I am making an application which requires some form of real time incoporated with multithreading. It need to be exact to less than 1 ms. What is the best method to get this kind of precision timing ?
|
|
|
|
|
BeakX wrote: What is the best method to get this kind of precision timing ?
using another OS than Windows first !!!
because Windows is not a RT OS, you cannot have timer accuracy under the millisecond...
|
|
|
|
|
If you are running on Windows operating system, the answer is simple: you can't. Windows is not a real time application and if you need resolution under 10 msec (can change a lot depending of the computer, the load of the CPU, ...) you cannot do that on windows. Better try to look for a real-time operating system. I don't know a lot, I worked already with eCos[^] but it will take some time to get ready with it.
|
|
|
|
|
Any API present to copy the content of a command prompt running in the machine
to text file?
Any other DOS command is available to store the content of command prompt in to the text file or a buffer?
Any other way is present to copy the content of a running command prompt in to the text file?
Kumar
|
|
|
|
|
|
void foo(TCHAR** t)
{
size_t tt = sizeof(*t);
}
int _tmain(int argc, _TCHAR* argv[])
{
TCHAR szForRequestData[] = TEXT("ForRequestVar");
foo(&szForRequestData);
return 0;
}
foo expected to receive a pointer to a pointer variable of type TCHAR, and it was feeded with pointer variable's address by
foo(&szForRequestData);
why the compiler complaining about "cannot convert...", I can't see where's wrong!
|
|
|
|
|
& and * are opposites (or you can look at it that way)
you have 1 & which will lift 1 * and that will leave you with 1 *.
Try defining your foo function like this:
<br />
void foo(TCHAR* t){<br />
}<br />
Coulda, woulda, shoulda doesn't matter if you don't.
|
|
|
|
|
V. wrote: Try defining your foo function like this:
void foo(TCHAR* t){
//Do stuff here
}
Thanks, but I want foo to be a function that accept a pointer to a pointer variable. But in you case I believe it was a pointer to TCHAR.
-- modified at 4:42 Wednesday 5th April, 2006
|
|
|
|
|
LiYS wrote: "cannot convert...",
cannot convert....//what.
Please give full error message.
Nibu thomas
Software Developer
|
|
|
|
|
Nibu thomas wrote: Please give full error message.
t.cpp(16): error C2664: 'foo' : cannot convert parameter 1 from 'TCHAR (*__w64 )[14]' to 'TCHAR ** '
-- modified at 4:40 Wednesday 5th April, 2006
|
|
|
|
|
Try this...
void foo(TCHAR** t)
{
size_t tt = sizeof(*t);
}
int _tmain(int argc, _TCHAR* argv[])
{
TCHAR* szForRequestData = TEXT("ForRequestVar");
foo(&szForRequestData);
return 0;
}
Nibu thomas
Software Developer
|
|
|
|
|
It passed compilation, but the questions boil down to:
1.what's the difference between
TCHAR* szForRequestData = TEXT("ForRequestVar");
TCHAR szForRequestData[] = TEXT("ForRequestVar");
|
|
|
|
|
in the second case (empty []) it creates an array which size is fixed by the assigned value...
|
|
|
|
|
LiYS wrote: TCHAR* szForRequestData = TEXT("ForRequestVar");
in this case the starting address of the string is stored in the TCHAR* szForRequestData
LiYS wrote: TCHAR szForRequestData[] = TEXT("ForRequestVar");
in this case the starting address of the string is represented/indicated by szForRequestData
never say die
-- modified at 6:24 Wednesday 5th April, 2006
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Because the built-in conversion from "array of X" to "pointer to X" only applies to one-dimensional arrays. You're expecting that conversion to apply everywhere, which it doesn't. "pointer to array of X" doesn't convert to "pointer to pointer to X"
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I tried to compile a simple unicode DLL, in both Release and Debug mode. This DLL, when called will show a message box with some unicode text. The Debug mode DLL works very fine. The release mode DLL is crashing after I call it the first time. I do not understand this. What exactly should I do to make the Release mode DLL work fine? I have read Joseph M. Newcomers essay about Release Vs debug. I did not find my answer in that. I am not using any variables any structures, etc.
Regards,
Aljechin Alexander
|
|
|
|