|
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.
|
|
|
|
|
|
I would like to create an application that does not appear in the Windows Task manager and system Try or any other means that might detect its existance
|
|
|
|
|
I have no idea how you can do that, but I'm curious as to why you would like to do that?
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
I don't think that you can hide your application completely, but you can definitely hide it enough so the average user won't find it.
If you don't show the main window of your application "ShowWindow(SW_HIDE)" then you won't have an entry on the taskbar. It will however be visible in task manager.
If you don't want it in the task manager you'll have to make a service of your application. (search for 'service' on CP and you'll find a bunch of articles on how to do this...)
In the event viewer you'll still be able to see that your service is started, but I guess the average user won't go looking there.
Hiding your app from the user might not be a nice thing to do as they have a right to know what's going on...
Don't think you are, know you are...
|
|
|
|
|
Mohsen Saad wrote:
I would like to create an application that does not appear in the Windows Task manager
this article may help you out
http://www.codeproject.com/system/preventclose.asp
Mohsen Saad wrote:
system Try
-->Usually no app show there existence in System Tray ,you have to write
code for making App ICON Visible in System Tray.
or if you are looking for about Window Taskbar :- Create Window with WS_EX_TOOLWINDOW EXTENDED style.
"I Think this Will Help"
[Vote One Here, Complete my Survey....]
<h5
alok="" gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
You should not be hiding it - there is a very strong backlash building against these sort of applications.
|
|
|
|