|
I want to add a button on windows Save As dialogue tool bar. I need information (name, path) about current document (which send Save As dialogue). From any documents I want to save them automatically in a fixed folder(s).
Best regards,
Mihai
mihai_chioariu
|
|
|
|
|
I have custom draw a dialog as my app's main dialog. I also want my dialog support resizing, so I choose the resizing style in resource editor. And in order to hide the ugly resizing border, I also draw the resizing border by my own. But when my app lost it foucs, the ugly resizing border also appear!!
I also override the OnNcPaint, but seems useless.
So would any one give any advice? any comment is appreciate!
Thanks a lot. pls, now I really do not know how to do.
|
|
|
|
|
How to retrive the key state of modifier keys combined with an other key like Tab.
For example .. to retrieve Alt+Tab keystate. ie. Alt-press +Tab press + Tab release + Alt release ??
Are there any ways...
Plz let me know
Thank you
vidhya
|
|
|
|
|
GetAsyncKeyState Function
The GetAsyncKeyState function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.
|
|
|
|
|
Hi, I need to upload TEXT files to an IIS server(ASP.NET, c#) from my MFC code. I also will be writting that code to accept the files at the server end. Can some one suggest how I can go ahead and upload files to the server.
Mayank Goyal
|
|
|
|
|
|
Well I do not have the option of using ftp as it is blocked I need to do it with HTTP only.
Mayank Goyal
|
|
|
|
|
|
Hello
I have a MDI application. Usely the user can open more then one document (CDocument) at the same time. Now I will open just one document at the same time. How can I block to open a secound document?
thanks for help Ernst
|
|
|
|
|
Are you wanting your MDI application to behave like an SDI application?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hello David
I will no change to a SDI. I will just open one document (with the same template class) at the same time.
regards Ernst
|
|
|
|
|
Rather than allowing the user to select a second file only to tell them it is not possible, why not just disable the File/Open menu option altogether when a file/document is open?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
This would be a possibility. But not for every case. Becaus I have enabled the user to do "file drag" into the application. So the user don't need the open button to open a document. Do you know a way where I can check all opened document before a new document is create?
Ernst
|
|
|
|
|
senn wrote:
Do you know a way where I can check all opened document before a new document is create?
Try the OpenDocumentFile() method.
Another option would be to close the opened file before attempting to open another.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hello David
:-DGreat! The OpenDocumentFile() is the right member function. It's allways called when I open a document. So I can manage the functionality in this function.
Thanks a lot!
Ernst
|
|
|
|
|
i need to invoke a jvm, but i don't know why FindClass() returns 0.
i think it's about class.path settings or the name of the class i'm trying to access.
what do i have to put in class.path? the path of my java class or the path of jdk?
do java class and .exe have to be in the same directory?
help me please, thanks!!
here is my code:
// ============= java class ============ //
package embedding;
// ...
public static void main(String[] args)
{
MyClass prova = new MyClass();
prova.run();
}
// ============= c++ code ============ //
//...
options[0].optionString = "-Djava.class.path=C:\\aa\\MyClass"; // the directory path where my java class is saved
//...
//cls = env->FindClass("C:/aa/MyClass");
cls = env->FindClass("MyClass");
|
|
|
|
|
hii...i am transferrin the resources from one exe to another....
also i am saving the resources as a .rc using the Resource Hacker software...which replaces the existing .rc file of the project.....
but i am getting the following error:-
"error RC 2019 : expected preprocessor command, found '1' "
(the error gigving line is-- #106 MENU)
this one is due to the id of the MENU resource i hav trasnferred from another exe
the next error is:- "RC Terminating after preprocessor errors"
how can i solve this?
is ther another way pf updating the .rc or .res files of a projetc using VC++ programming ?
regards,
kedar.
|
|
|
|
|
Numeric resource IDs in an .rc file are just numbers. A # symbol introduces a preprocessor command (such as #include, #ifdef, etc). Delete the # and you should be fine.
You can open an .rc file in Visual Studio, then drag and drop resources from it to the Resources tab of your project. Hold Ctrl to copy resources rather than move (which is, bizarrely, the default).
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
hii...i removed the '#' from the code but aftrwards i got the following errors:-
1)Primary Language Id is not a number
2)WS_**** undeclared/undefined (for the transferred resource)
how can i solve these errors?
regards,
kedar.
|
|
|
|
|
is there any API other than URLDownLoadTocachefile() to download a file in asynchronous mode(user shouldnot be blocked)
|
|
|
|
|
|
I suppose you could always download the file in a separate thread, then the user's primary thread would not be blocked.
|
|
|
|
|
I'm using some hotkeys (which are there in the accelerator table). The hotkeys are working fine when I build and run the exe in Debug mode, but If I try the Release exe, the application just crashes by by giving a runtime error and saying that 'The instruction at"0x77de6439" referenced memory at "0x0036ad38". The memory could not be "read".'
Is it that I need to do something special to make the accelerator table available to the Release exe? or something else which I may have missed?
|
|
|
|
|
Have you done a complete rebuild? It's the only think I can think of.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
Yes, I've done the complete rebuild many times and still getting the same error.
Thanx, anyway, for your time.
|
|
|
|