|
Hi,
How to register a dll through code.
|
|
|
|
|
Load the library (for instance, via LoadLibrary ) and then call DllRegisterServer .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Use this
WinExec("regsvr32 /s path of the dll including the name of dll",SW_SHOW);
Regards,
Pankaj Sachdeva
There is no future lies in any job but future lies in the person who holds the job
|
|
|
|
|
Is your DLL a COM DLL or normal DLL ?
Regards,
Paresh.
|
|
|
|
|
hi...
i need to save the messages form my mobile nokia 7610 to my pc automatically.
how it can be done?
|
|
|
|
|
Kindly help me or give me a clue , how can i convert series of ppt slides in abc.ppt to n-number of jpg files. one slide=one jpg file??
programatically using vc++
thanks in advance
fdsfdsf
|
|
|
|
|
For this you have to use the office automation i.e using the some of the tlb files of office u can use the functions that the software provides.
here if u see the power point provides a tool called as "Save As" which gives u the facility to convert the .ppt into the jpg file
just u hav to u that tool and then u r on the way
Regards,
Pankaj Sachdeva
There is no future lies in any job but future lies in the person who holds the job
|
|
|
|
|
Saving a PPT file as a JPG file will go something like:
CString strFileName = "abc.ppt";
_Application app;
_Presentation pres;
COleVariant vtFalse((short) FALSE),
vtOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR),
vtJpg((short) 17);
if (app.CreateDispatch("PowerPoint.Application") == TRUE)
{
pres = presentations.Open(COleVariant(strFileName), vtOptional, vtOptional, vtOptional);
strFileName.Replace(".ppt", ".jpg");
pres.SaveAs(COleVariant(strFileName), vtJpg, vtOptional);
docs.Close(vtFalse, vtOptional, vtOptional);
app.Quit(vtOptional, vtOptional, vtOptional);
}
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello DavidCrow!
can you give a correct codes
Thanks
fdsfdsf
|
|
|
|
|
anchorwang wrote: can you give a correct codes
I gave you 95% of what it would take to solve your problem. Surely you can come up with the balance.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
A class with Virtual function is always having size is 4 byte more than the the class without virtual fun because the first four byte is assigned for VPTR so my question is thr any way to use the VPTR for calling virtual function???
or pleas suggest me any good document to read.
TahankXXXXXXXXXXxx.
|
|
|
|
|
I think this[^] will help you.
Regards,
Paresh.
|
|
|
|
|
hai all,
could you please give me the code , how to scroll the flexgrid.
just consider , if the flexgrid having 20 rows. at present only 10 rows are visible due to small dimensional flexgrid.
if i want to highlight the 20th row , it is highlighting, but i can't able to see it.
because 20th row is in the invisible portion of the flexgrid.
so how to auto scroll the flexgrid to see the 20th (highlighted row)
thanks
panthal
|
|
|
|
|
hai,
here i have some clue.
to achieve your task, follow these steps.
1. in pretranslate message, write the following code.
if(pMSg->hwnd==m_grid.m_hWnd)
{
if(pMsg->message==161)
{
int debug=0;//now put a break point here and debug the application.
}
}
2.run it in debug mode, and click the down portion of the dialog(i.e. for down scroll)
now you will be taken to the code as specified in point 1.
3.now see the values of pmsg->wparam and lparam say for example x and y.
4.now, in the place, where you want to automatically scroll your grid,
use the following code to scroll 1 cell.
m_grid.SendMessage(161,x,y);
i hope this logic is a bit confusing. but i tried it and it works.
if you could understand the above, then this should work for you too.
any more doubts, you are welcome.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
USING THIS CODE i solved,
grid membervariable.SetTopRow(row value);
thank u my dear friend chandu,
keep in touch. now i'am really happy.
thanks a lot
|
|
|
|
|
wov thats wonderful.
now it seems that, you are my guru.
good and congrats.
|
|
|
|
|
Hi Friends,
I created a Dialog based application.To that i added flexgrid control.
I made it flexible so that it should keep growing as & when i add some data(some numbers) to it. After 10 records the grid grows & scroll wil be added.
But the problem is that, data after 10th ie:11,12...goes down.To see that i have scroll down.
I want it to display the current data.. For eg: for 15th record it should show the 15th one.
Please anyone help me out..
Thanks in advance.
Reagards
Shiva
|
|
|
|
|
your post resembles that of mr panthal, who has posted just after few minutes from your post.
you can refer it there.
by any chance, are you both colleagues or competitors.
good luck.
|
|
|
|
|
use this code,
Flexgridmembervariable.SetTopRow(enter row value);
panthal
|
|
|
|
|
Hello,
I want to use CList inside CList so anybody tell me how can i do it or any other alternative?
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
It will be better if you create an object that contains a list of other object, and this object contains a list of ....
Take a look on my article http://www.codeproject.com/cpp/SmartListII.asp[^] specially on the comments I wrote at bottom. I explain a hierarchie that I used in my project. It may help you.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Ya i know it but i want to use it with CList only.
Any idea?
Manish Patel.
B.E. - Information Technologu.
|
|
|
|
|
I havent done it for CList but I have for CArray, I have an array that is declared as follows in my CMyDoc:
CArray<CArray<CString, CString&>, CArray<CString, CString&>&> m_collections;
it is not the easiest of things to use, whereas
class CImage
{
}
class CImages
{
CArray<CImage, CImage&> m_images;
}
class CMyDoc
{
CArray<CImages, CImages&> m_images_images;
}
is much easier to use and read.
|
|
|
|
|
I agree with you, because of that I told about the "objects" (classes better said)
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|