|
gloriousgopi wrote: multi-language support to that application
You can UNICODE
Do your Duty and Don't expect the Result
|
|
|
|
|
Thanks for u suggestion.
Can you plz explain it some more. So that i can able to work on it
Gopinath MV
|
|
|
|
|
|
My problem is to provide multilanguage support for my application.
i,e i have to show the Dialog based application in English when the user clicks english from the menu, or in French when he clicks French from the menu.
when the user changes the language the application should change its whole display according to user choice
Gopinath MV
|
|
|
|
|
|
Thanks prasad_som.
The link is very helpful.
Gopinath MV
|
|
|
|
|
in dialog based application by clicking a button if i want to open a another window how it will b possible???is there any function for that which can b used there..
thanks
|
|
|
|
|
You can use
Create an object to the class and use 'DoModal()'
or
Create an dialog pointer and use ShowWindow(SW_SHOW)
DoModal() will disallow any actions in parent dialog untill the new dialog is closed
Do your Duty and Don't expect the Result
|
|
|
|
|
Is the window (dialog or window) part of your application? or and external application
For the dialog
You can call DoModal function of the dialog object
For SDI, MDI or or other type of windows, You can call ShowWindow function to show the dialog
It should be handled inside the message handler of the button
If an external application, you can Make use of CreateProcess API.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Pattern
|
|
|
|
|
if its another dialog then call it using DoModal() function of the instance of the dialog.
Eg MyDialog dlg;
dlg.DoModal();
if its a window then call the ShowWindow() method
eg ShowWindow(this->m_hWnd,SW_SHOW);
regards
Gopinath.
Gopinath MV
|
|
|
|
|
can u help me when i use this function i got the error
"
C:\myproject\newartz\newartzDlg.cpp(204) : error C2660: 'ShowWindow' : function does not take 2 parameters"
Sorry to bother u pls help me out
eg ShowWindow(this->m_hWnd,SW_SHOW);
|
|
|
|
|
oh just remove the this->m_hWnd argumtent ok
Get the window handle that you want to display and'
then call the showWindow function.
Eg CWnd *p = AfxGetMainWnd();
p->ShowWindow(SW_SHOW);
Gopinath MV
|
|
|
|
|
You can use CreateIndirect or CreateDialogParam or DoModal()
How do you open?
|
|
|
|
|
Hello, I have a single dialog with a custom control which is based on the CWnd class. From method in the custom control, I need to access a variable from the dialog's class. How would I need to make this call to say a getValue() method?
FYI, I am using VC6.
|
|
|
|
|
ctroyp wrote: Accessing parent dialog
Use GetParent(). This will provide you with a pointer with which you can call getValue().
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Im not sure, whether the GetParent call from a COM control will work out.
Anyway, call GetParent(), if you get a valid parent handler, type cast it to your Dialog class' pointer. using dynamic_cast will be safe for this. then you can call the public interfaces.
You may have to use the header file and other stuffs of dialog class in the control class.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Pattern
|
|
|
|
|
you should not directly access the members of the dialog using the pointer, in which case your custom control no more is a reuseable custom control. You should define user defined message handlers in target window and then try to set/get anything using it.
Vipin
http://www.explorewindows.com/Blogs
|
|
|
|
|
Thanks for the webpage u provided me... it was really helpful....however my boss doesn't want that... he wants me to encrypt the image... then dsplay it out beore saving it up.... haiz.... thanks anyway~~ TO THOSEWHO ARE READING THIS~ CAN ANYONE PLEASE HELP ME WITH MY PROBLEM????
A MILLON THANKS.............
THANKS
REGARDS
|
|
|
|
|
You can post this on my CP profile instead of posting here can't you display original image and by using a simple encryption function, convert the bitmap bits to to encrypted format and then save? I'm not sure whether I'm talking about your problem
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Pattern
|
|
|
|
|
You wrote:
You can post this on my CP profile instead of posting here... can't you display original image and by using a simple encryption function, convert the bitmap bits to to encrypted format and then save? I'm not sure whether I'm talking about your problem...
hey sorry.... but i'mm new in this forum haha... dono wad's CP profile...... anyway, regarding on the pointers u gave me, do u know how to do them? i don't know how to do it... could u guide me?
thanks
|
|
|
|
|
Yes I shall...
But today im a bit busy.
Seems you can so some stuffs with showing and saving an image. that's quite simple. you will get lot of information from the web itself.
On reading and writing to file, the real logic occurs.
You can make use of GetBitmapBits and Set bitmap bits. or directly modifying the bitmap buffer wtih your XOR logic.
ok try your level best.
|
|
|
|
|
we3Guy wrote: he wants me to encrypt the image... then dsplay it out beore saving it up...CAN ANYONE PLEASE HELP ME WITH MY PROBLEM????
So what exactly are you having difficulty with? Encrypting an image, displaying an image, or saving an image to disk? Three different questions require three different answers.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
my question was....
i'm doing this project whereby,
i have a "load" button that enables me to display a picture in bitmap format...
Next i have to encrypt the picture and display it again..
and decryption as well in future
Thanks
Regards
|
|
|
|
|
we3Guy wrote: Next i have to encrypt the picture...
Well, there's CRAPI, and then there are these:
http://www.codeproject.com/cpp/encrypt.asp
http://www.codeproject.com/file/aencrypt.asp
http://www.codeproject.com/cpp/cryptit.asp
http://www.codeproject.com/cpp/blowfish.asp
http://www.codeproject.com/cpp/aes.asp
http://www.codeproject.com/cpp/xor256.asp
http://www.codeproject.com/cpp/EncryptionCryptoAPI.asp
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks for the websites they were nicely writtened.... but.... they were not very useful to me... thanks anyway....
by the way,erm.......
if i want to do editing to the image, do i take the pixels of the image or the array bytes of the image? AND.... how should i go about doing it?
THANKS~!!!!
Best Regards
|
|
|
|