|
Anurag Gandhi wrote: I think MFC Regular dll can be used by other applications also if i have used extern "C" to it.
Please tell me if I am wrong.
MFC dll can be used by other language, till it not exporting function , which contain MFC specific decalartion like CString in above case.
I have used MFC COM DLL in VB Application!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
toxcct wrote: MFC DLLs can be used only by MFC programs...
MFC dll can be used by other language, till it not exporting function , which contain MFC specific decalartion like CString in above case.
I have used MFC COM DLL in VB Application!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Anurag Gandhi wrote: extern "C" __declspec(dllexport) CString IndentCCode(CString strMyString)
It can be used only in application, where CString decalaration/defination is known!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Hello All's
I am making an Modal dialog based application in vc++ using (MFC)
now my requirment is that to print bill report of particular product.
all record (like quentity of product,price of product ) pick from database
i used MySQL as Database.
Can any one give me any example of such type of report or any idea How can i do this.
Plz help me in this problem
Regard's
Kaushik
|
|
|
|
|
|
can u told me any simple example for this
Regard's
Kaushik
|
|
|
|
|
Currently I do not have any sample code with me. Google CPrintDialog, you can get code samples.
|
|
|
|
|
|
|
I have write code for this and I can easily get printer also
but when i fire print command a blank page come
I am understand where i make wrong
Regard's
Kaushik
|
|
|
|
|
Does your problem solve now or not?
|
|
|
|
|
My problem is not solved now
i have write code for printing report
But it print a blank page .
is any simple and easy way to print report in Modal dialog based form of MFC
Regard's
Kaushik
|
|
|
|
|
Y_Kaushik wrote: is any simple and easy way to print report in Modal dialog based form of MFC
have you got the printer handle before writing on it.. actually you have to write every thing on PrinterDc before firing command!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Yeah here a simple way to write with StartDoc/EndDoc and if you dont know how to use of these functions MSDN has a good and helpful and simple example of them.
|
|
|
|
|
WhiteSky wrote: Does your problem solve now or not?
your HTML coding getting good day by day
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Thank you,how are you?
In fact its dynamic if you see my reply for first time its line but if close my message and open again you see its dash line.;P
|
|
|
|
|
plz give me a code i realy need it plz reply
|
|
|
|
|
This is not a trivial question. Such an answer would span several pages. What exactly are you needing help with? Be specific. Until you can successfully form an SQL statement to retrieve the pertinent data from your database, don't bother with printing details.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
How to get details from User Acoount Control?Especially about the privileges guven to the particular user through coding?
Thanks
|
|
|
|
|
Can you please clear your question; what exactly you want and what kind of user account control?? Is it a sort of database and do you want to retrive data from it based on username or any identity of user??
Anurag Gandhi.
http://www.softgandhi.co.nr
|
|
|
|
|
We will give Admin right,limited access etc.That details i want.
|
|
|
|
|
|
look at api starting with Net*
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Hello everyone,
Two questions about COM tlb file,
1. I am wondering what are the content of COM tlb file? I think it should be something like import library file (.lib) for a DLL which contains address and signature of exported functions.
2. Why for C# COM client, tlb file is not needed? Why for C/C++ (native) client, tlb file is needed?
thanks in advance,
George
|
|
|
|
|
George_George wrote: 1. I am wondering what are the content of COM tlb file? I think it should be something like import library file (.lib) for a DLL which contains address and signature of exported functions.
you are somewhat right, yes it contain the decalartion of interface and related constant and enum. which vc++ compiler read to generate equivalent tlb and tlh files.
George_George wrote: Why for C# COM client, tlb file is not needed? Why for C/C++ (native) client, tlb file is needed?
it not necessary to have tlb file even in vc++(native) to use com component, you can directly import com dll or add Header File geenrated by actual com workspace .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|