|
Good joke. Very nice.
Nice talking to you.
|
|
|
|
|
gunmistral wrote:
c++ is used.
Bmp file, It changes by the PDF file.
Do you want to know way to convert BMP file into PDF using Visual C++?
"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
|
|
|
|
|
Try LibTiff:
http://www.remotesensing.org/libtiff/[^]
Download the source for the latest version. In the tools folder, there is a sample bmp2tiff.c to convert a bmp into a tiff, and another sample tiff2pdf.c, which converts a tiff into a pdf.
you can put both their code together to create a pdf from a bmp.
this is this.
|
|
|
|
|
Really you are great. With the little info you have given solution. But every one smileing. But you have done nice job.
Nice talking to you.
|
|
|
|
|
I want to set the title in the Main frame window in an SDI app, but I can't seem to find the right function. I have tried setting the title in the document class, but instead of getting "Title" I get "Title -- Application Name" I have also tried CFrameWnd.SetTitle, and
CFrameWnd.SetWindowText, but none of them seem to work.
Any help would be much appreciated.
|
|
|
|
|
Add
cs.style = WS_OVERLAPPEDWINDOW;"
to function CMainFrame::PreCreateWindow,
and add
SetWindowText("mytitle");
to function CMainFrame::OnCreate.
Then the title is changed to "mytitle".
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.style = WS_OVERLAPPEDWINDOW;
return TRUE;
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
//...
SetWindowText("mytitle");
return 0;
}
|
|
|
|
|
Do simply like this:
In the InitInstance() function in your Application class, just before the line m_pMainWnd->ShowWindow(SW_SHOW) , add the following line of code:
m_pMainWnd->SetWindowText("My Application Title");
Regards,
Ashok Dhamija
_____________________________
Padam Technologies
|
|
|
|
|
Is it true that a content being dragged and dropped through OLE operation is done without routing the content to the clipboard? I mean is it true that such content is NOT copied internally to the clipboard when it is dragged and dropped?
Thanks.
|
|
|
|
|
How can I control a remote PC if I'm using the server? I tried ShellExecute but when I called a .exe file of a remote PC, it ran on the server (or to where I used the ShellExecute). I'd like to make the .exe run on where I call it and not on my PC. Any related topics or samples will be of much help. Thanks
|
|
|
|
|
ShellExecute will run the app on the local machine. I would have thought that you need to have an exe on the remote machine (calling ShellExecute), this is obviously true if you want to control the PC in any case.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Well, it's supposed to be 'controlling the remote pc' but ShellExecute simply reads the file that you addressed then call it on your local machine
|
|
|
|
|
PsExec[^] can do that. i think that the source code is also available on the site
|
|
|
|
|
Hi, I'm a newbie in Visual C++. Can somebody show me how to extract, create or even list the contents of a cab file in your program. What if you want to create an application like a Cab Manager. There's not much topic about cab files though it is a very effective file compressing utility. Please show a simple example using Visual C++., Thanx in advance
|
|
|
|
|
You can't open any sort of compressed file in VC++ without the use of an external library dedicated to the task. zlib springs to mind, but I dunno if it can open a cab file.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I think cab file usage comes very often. Do you have any suggestions on 'what compression utility or tool to use which can be maintained inside a program'? could it be zip files or something else?
|
|
|
|
|
benjnp wrote:
Please show a simple example using Visual C++., Thanx in advance
I found a couple of hits here at Codeproject. Here is an article.
Microsoft Cabinet Templates
[^]
Seach Codeproject for CAB[^]
-------------------------------
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Hi all,
I am trying to create a multi language application with Visal C++ so I created many string tables (Englis, Spanish, ...) in the resource view window (visual studio 2003). Somebody told me that using CString::LoadString(ID...) will load the string resource I want, taking into account the locale settings of the operating system (I am using XP Prof SP2).
I have been trying all the combinations I could but I always get the English strings.
Any ideas?
Thanks,
Fer
|
|
|
|
|
Hey all;
Im looking to make a GUI overlay (like windowsblinds or stylexp). Can anyone point me in the direction? I cant find any code or tutorials on anything. Please help. I want to make a simple little overlay with all the fixens... scrollbars, buttons... everythings. Thanks.
Dave
|
|
|
|
|
An overlay to what, exactly ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
By overlay, do you mean skin? If so, search CP for plenty of examples, and also try Google.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Not skin for just a dialog app, but a whole program to skin the startmenu, all dialogs, windows, desktop... kinda like a theme for winxp. I want to make a program that can skin everything. I searched google, and had no luck. Please Help. Thanks
Dave
|
|
|
|
|
I think a manifest file will be required for this.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Manifest files are made so that the app you made takes on winxo themes. I know how to do that. I want to make a program the will skin the start menu, and about eveything else. Like WindowsBlinds. Is there code out there to at least do that? Need to start somehwere. Thanks
Dave
|
|
|
|
|
|
Those are programs that allow you to take another already made program and make skins for them. I want to write that program that skins everything. Nevermind. Im just going to try somethings. Thanks though.
|
|
|
|