|
|
Are you making a splash screen?
If so why don't you simply BitBlt to the dialog.
If not bring the buttons up the Z-Order using SetWindowPos .
Nibu thomas
Software Developer
|
|
|
|
|
Thanks for your time guys.
But I got how to do this.
I would like to share the solution with all of you.
Set the Transparent property of the button to TRUE . That is all.
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
How to call a java class from win32 api?
|
|
|
|
|
|
and why would you do such a thing ?
a java class is compiled for byte code, not for processor assembler...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
And I think also that java code needs a virtual machine no ? (I don't know java so I'm not sure at all).
|
|
|
|
|
|
What do you want to do by calling a java class into your code.
This seems very irrelevant.But if you can give a bit of detail about the things you want to achieve by doing this some one here can help you on this.
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
BCoz it was asked in an interview. so i want to confirm whether we can call or not..
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
In my code i am using a browse for folder dialog box the problem i am facing is i want to display all the files in the selected folder into a right pane (My code consist of splitter window with left and right pane )
Please help me out i am just a beginner
Thanx in advance
|
|
|
|
|
And where are you stuck exactly ? If you don't know how to get the files from your folder, take a look at CFileFind[^]
|
|
|
|
|
Well I am able to get folder dialog box and select the folder but now i want that i should be able to display the selected folder files into the right pane of my sdi splitter window I am unable to do that
|
|
|
|
|
This is very vague. Does my answer help you ?
|
|
|
|
|
Can you be more specific
Do you want to get many files instead one file?
|
|
|
|
|
Yes I want to list all the file names in the selected folder
If anyone could help me out please
I am just a beginner
|
|
|
|
|
if you need to all files you can use FindFirstFile and FineNext
but if you want to multiselect use OFN_ALLOWMULTISELECT
OPENFILENAME ofn.m_ofn.Flags in function GetOpenFileName
Hope I understood your question
|
|
|
|
|
Thanx for the help !!!!!!!!
|
|
|
|
|
Thanx for the help !!!!!!!!
|
|
|
|
|
Hello everyone,
I find that _stprintf is defined to swprintf. And in the prototype of swprintf, the 1st and the 2nd parameters are both wchar_t. I think the other parameters should also be w_chart type, but in some situations, I always find others use char* type (which seems not unicode character type) as the parameter, like,
--------------------
// buffer is wchar_t* type.
_stprintf (buffer, L"%s", (char*)pointer);
--------------------
Definitions from Microsoft,
--------------------
#define _stprintf swprintf
_CRTIMP int __cdecl swprintf(wchar_t *, const wchar_t *, ...);
--------------------
Can we use char* as the 3rd parameter? If we can, why can it (non-unicode type) be compatible with wchar_t type (unicode type)?
thanks in advance,
George
|
|
|
|
|
actually, _stprinf() is defined to swprintf() only if UNICODE is defined in your project. if not, then it is defined to sprintf() .
so, instead of using L"" literals, prefer using _T("")
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Thank you toxcct,
Why _T is better than L?
My question is whether it is correct to use char* type as the 3rd parameter in my sample. If it is not correct, what potential issues will be?
regards,
George
|
|
|
|
|
L defines unicode literal strings always, when _T defines unicode strings only if the project is compiling in unicode (wchar_t), otherwise, simple char strings.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Thanks toxcct!
What header files need to be included if I want to use _L?
By the way, could you come back to the sample I wrote above to comment whether it is correct to use char* (non-unicode type) as the 3rd parameter of _stprintf? Thank a lot!
regards,
George
|
|
|
|