|
Hi,
Sorry it's not a CString but it is a CTransparentStatic this is which I have taken from Codeproject site.
So, it is like CTransparentStatic and all the methods are maintained in this file.
So, please give me solution if possible
Thanks!!!
|
|
|
|
|
Change the scope of your font variable.
In the class this code is from, you could:
Add a member variable CFont m_BoldFont1;
In the class' constructor, call CreateFont on the object.
m_BoldFont1.CreateFont(15,0,0,0,900,0,0,0,0,0,0,ANTIALIASED_QUALITY,0,"Arial");
Once the control is created, call SetFont on it using the member variable.
test.SetFont(&m_BoldFont1);
The object will be freed when the owner class destructor is called.
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
hii all...
I want to upload a document from my asp page the asp GUI contain a browse button and sourse and destination path.....
i want to know how can i upload a file from sourse to destination.....
what i am thinking...
i need to read the content and name of the file and then i nead to make a file on destination with same name and then write the content...
please help me....
Thanks in advance........
vikas da
|
|
|
|
|
Google for 'freeaspupload'
Regards
|
|
|
|
|
ahmad_ali wrote: Google for 'freeaspupload'
No i want to know the concept of uploading and downloading .....just like on gmail we can upload some file let it be a 5 mb word document.. when we upload this documet on gmail ... how it is uploded ... how can it be done in vc++....
Thanks
vikas da
vikas da
|
|
|
|
|
Google does not use VC++. It is asp/jsp/java/javascript.
Web browsers do normally not permit execution of VC++ generated binary code.
|
|
|
|
|
Hi all,
Can anybody explain me what is the meaning of all these "TCHAR ,BSTR and _bstr_t,_variant_t" and why and when we are using this in vc++...
Thanks
vikas da
vikas da
|
|
|
|
|
TCHAR is windows datatype, it will get converted to char or wchar depending on #define
BSTR is COM data type and is unicode compliant, it will always use the string in unicode format.
_bstr_t is also com data type and it encapsulates the BSTR data type.
_variant_t is VARIANT data type and can accept contain any datatype defined in union it has.
Atul
|
|
|
|
|
That is Really a case for "Read The Fine Manual". => http://msdn2.microsoft.com
Greetings from Germany
|
|
|
|
|
Hi all,
I am new to DirectShow so please help me with the problems that i am facing:
i am capturing video from some device like webcam.I have to encode the captured video using the wmv or mpeg-2 codec and then i have to tramsmit it on the network.All this i have to do using DirectShow.I have suceeded in capturing video but now i have to employ the codec to encode.Is DirectShow supports WMV or MPEG-2 codec to encode the video.If yes,then how can it be done.
Regards,
Mayank
|
|
|
|
|
DirectShow supports ASF files (WMV, WMA, etc) indirectly by using the Media Format SDK,
as documented here: DirectShow - Windows Media Applications[^]
The Media format SDK can be found here: Windows Media Downloads[^]
In the Media Format SDK, you'll find there's a network writer sink that you can use. Here's
an example of the documentation: Sending ASF Data Over a Network[^]
Since you're new to directShow, you probably have some studying to do so you understand how
to link DirectShow, which handles capturing and rendering, and the Media Format SDK, which handles
compression, decompression, and (limited) network communication. Hopefully these links will get
you started!
Have fun!
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
I have written a dll and exported classes.
I don't want to give header file to clients.
How this can be done. I want only to give lib file and dll to the user.
|
|
|
|
|
Why don't you want to provide header files ? It is always done this way...
|
|
|
|
|
As Cedric said, what's so bad about giving headers? One way or another, their code needs to know how to talk to yours, and the secret of all your dodgy function names will be revealed.
That said...
Some companies I use just distribute the DLLS. I then use #import to get the COM interfaces from those. But that is COM, and Typelibs, and all sorts of fun... Chances are its more headache than its worth, but it does let their DLLS be used from many languages, include VB. *I* don't care about that, but you might.
Iain.
|
|
|
|
|
can #pragma comment(lib, "libname.lib") help??
|
|
|
|
|
That's only to specify that you link to the lib file. You still don't know how the exported classes look like.
|
|
|
|
|
If you don't want the client to use the exported classes directly from the dll, you can.
If the client uses the DLL directly, the exposed classes needs to have its declaration exposed right.
If you really want to hide the class declaration that might have some implementation exposed, provide only interface exposed to it similar to COM concepts.
|
|
|
|
|
Just a thought (may not work), but if your DLL is simple enough and doesn't require any specific definitions (i.e. structures, macros) maybe this code snippet can help:
<br />
typedef int (FAR * Func1_Substract)(int, int); <br />
<br />
HMODULE hMod = LoadLibrary(_T("test.dll")); <br />
<br />
Func1_Substract substract = reinterpret_cast<Func1_Substract>(<br />
::GetProcAddress(hMod, "dll_substract_function"));<br />
<br />
int result = substract(10,10); <br />
|
|
|
|
|
This will also need undecorated export functions (ie, created using extern "C" if you're using C++).
It's alway far too easy to break, compared to a header file.
It should work though, but there are a few gotchas.
Iain.
|
|
|
|
|
Can I include Runtime license in to my ActiveX project after building it .
Initially , I did not include it while making the new ActiveX project.
|
|
|
|
|
I need few testing tools - commercial or open source that can help testing an open source application that I am extending.
Need your suggestions and experience?
|
|
|
|
|
Testing...what? Profiling? Performance? Coverage? Leaks? Unit tesing? Regression testing? Load testing? And what platform?
|
|
|
|
|
Thanks Hans, I am especially looking for performance and load testing tools but comments on others are welcome.
like for unit testing - cppunit.
Similarly, if you could suggest me 'try this for leaks and profiling' that would really help. I am actually creating a matrix for all kinds of features that different testing tools and environment can offer.
Thanks in advance for any comments and suggestions.
|
|
|
|
|
Hello
I want to change the background of mainframe window, status bar and menu bar.. without using skins
any help...
Blr Boy
|
|
|
|
|
What are skins ? I mean, I know what they can mean, but how do they differ from what you want to do ?
You can set their background color, or draw a bitmap on them.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|