|
hello...
i want to ask about filename.dat
how can i put images (jpeg or any other format)in the file.dat,i want to know the steps, and how they will be in that file .
please answer me ,it's very important to me.
thanks
|
|
|
|
|
Your question is a bit on the unclear side. You are wanting to write image data to a file named filename.dat (or file.dat). Correct? Where are you getting this image data from?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
hello
i need to Store the content of the image file inside the filename.dat.
i want to perform this because i am trying to execute face detection using version 1.2 of the frontal face detector code (http://www.cc.gatech.edu/~wujx)
the auther used cars in his file.dat .
i want to use faces .how can i perform that.
thanks
|
|
|
|
|
sara-m wrote:
i need to Store the content of the image file inside the filename.dat.
If you already have the face data in a buffer of some sort, then you simply need to call CreateFile() , WriteFile() , and CloseHandle() .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
What do u want 2 do:
1.Store the filename of the image in the filename.dat
2.Store the content of the image file inside the filename.dat
If method 1, i know but method 2 never heard about
/\|-||\/|/\|)
|
|
|
|
|
I use MFC and I want to print out text with a image how can I do that.
And if it is possible how can I print out a image that is in the program and outside?
|
|
|
|
|
i want to do a timer in windows sdk, which run continuesoly.So please help me about this.
I dont want to write a timer procedure for that so whethere it is possible?
Thanks in advance,
santosh
|
|
|
|
|
|
By calling SetTimer(nn) you initialize a timer that fires OnTimer each nn milliseconds.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
I don't know other way than:
UINT_PTR SetTimer( HWND hWnd, UINT_PTR nIDEvent, UINT uElapse, TIMERPROC timerFunc
);
static LRESULT CALLBACK WindowProc(
HWND hWnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
)
{
switch(uMsg)
{
case WM_CREATE:
{
SetTimer( hWnd, 1, 1000, NULL) // 1000 - 1sec
}
break;
case WM_TIMER:
// do something
break;
case WM_QUIT:
KillTimer(1);
break;
}
}
}
|
|
|
|
|
How do I open a document from within my CDocument derived class?
I tried CMyDoc::OnOpenDocument(LPCTSTR pathname), but that doesn't work.
|
|
|
|
|
You not opening document. Ususaly when you click on menu File New or Open function OnNewDocument or OnOpenDocument are called automaticaly. Document template wants to control all creation and deletion of documents.
You can treak it if you look in CDocumentTemplate.
|
|
|
|
|
I have a VC++ application that link/update/retrieve data of a MS access mdb file on the web. However, I do not know how to launch/open a web page through this application
Anyone knows how to do it? If so, can we are able to close it after launching?
*) The reason I ask for help, because I need to update data to that MS access mdb file without requiring the user to launch the web page himself!
Thanks for any help
|
|
|
|
|
ATC wrote:
However, I do not know how to launch/open a web page through this application
Have you tried ShellExecute() using the "open" verb?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi David,
I only use ShellExecute(...) to launch a local application but not in the web, I did verify to use ShellExecute(...) to launch a web page, but none available! Do you know any link/guide?
To link to the web site I used pConnect->OpenFile (fileSem, GENERIC_READ, FTP_TRANSFER_TYPE_BINARY,1); or similiar to transfer, write or read a datababse ... not to launch a web page!
Might be you kind of provide me a simple command to launch a Web page?
Thanks
|
|
|
|
|
ATC wrote:
I did verify to use ShellExecute(...) to launch a web page, but none available!
Using ShellExecute(..., "open", "somefile.html", ...) will open the web page just fine.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi David,
You solve my problem, I am able to launch my web page now.
Many thanks,
|
|
|
|
|
ATC wrote:
I have a VC++ application that link/update/retrieve data of a MS access mdb file on the web
Please clarify what you are trying to do. Is the mdb on a remote server which has a web interface? Are you trying to access the web interface from a client application? Or all you need is to launch the browser and make it connect to some URL?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Hi Jose,
David helped me to launch my web page inside my VC++ application, it is OK now.
Thanks for trying to help
|
|
|
|
|
Dear fellow developers
We’ve developed a windows based desktop application. The application is built using Visual C++ 6.0 and MFC.
In our application we are automating MS-Word. The user clicks on a button and as such MS-Word application gets opened which hosts the desired document. When the word document gets opened, the user starts typing on the word document as usual. Once the user finished with the typing process he/she saves the document and then closes the document and afterwards the word application.
The resultant software is working fine on our machines. But when we released the software to our clients, MS Word starts creating the trouble.
Here is the description of the problem: The user launches MS word document from our application and starts typing in it. Now during typing, the MS-Word application gets crashed. This behavior is produced unexpectedly and is not reproducible. It is only happening in the MS-Word instance which is automated by our application and not by the externally launched MS Word instance.
We’ve made some research on the machines where this problem is occurring. And we’ve noticed that those machines are short of Virtual memory.
During the course of time when MS-Word window is opened, the application (or our automation client) only calls the word Save function and also calls the function which returns the current selected text. We only use MS-Word 2000.
Please advice us how can we get rid of this issue. Please also suggest us the ways to trace this error.
|
|
|
|
|
I have written code to get contact of Outlook Express.It is working fine in MFC.I am trying to make ActiveX control on asp page.I am not getting output i.e. ActiveX Control.It becomes busy downloading the page.I thing because of LoadLibrary() it is not working.I had done same thing for Microsoft Outlook successfully.Please tell me what is the problem?
sanjay kumar
|
|
|
|
|
in my program i have two buttons............ one buttonn will start an infinite while loop. I want that when the second button is pressed the program should exit that while loop.........
How can i do that
plz be elaborative as i m a beginner in VC
the more u give the most u receive
|
|
|
|
|
This looks like homework.
Create an event handler for the first button and in the event handler break out if the second button is pressed.
You should be able to work the rest out yourself otherwise you will not learn.
Elaine
The tigress is here
|
|
|
|
|
|
If it's a true infinite loop, it is unexitable.
Good music: In my rosary[^]
|
|
|
|