|
I am using vc++ connect mysql. I connect to mysql and display the date field data in the text box. how i going to get the date value display in the text box so that i can increase the year.??? Or convert string to date type and increase the year
|
|
|
|
|
If the "text box" is a datetime control, you can use the DTM_GETSYSTEMTIME message. With MFC, this is CDateTimeCtrl::GetTime(), and the result can be stored in a CTime or COleDateTime object.
If you just have a plain edit box, use GetWindowText() to get the value, and then parse it accordingly. It'll depend on where the year is within the date.
|
|
|
|
|
My class relationship is:
class CViewBase::CFormView
{......}
class CViewLogon::CViewBase
{......}
CViewLogon::OnInitialUpdate()
{......}
i want do something in func CViewLogon::OnInitialUpdate(),but the program did not execute the func at all.in other word,i can't trace into the func CViewLogon::OnInitialUpdate(). what's up to my program?
gucy
|
|
|
|
|
Where are you trying to invoke OnInitialUpdate? Or are you letting MFC do it. Also, check and make sure your routine declaration matches EXACTLY. If you change and argument or a return type, it won't get executed.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
i did let mfc to do it.and i didn't change the parameter or return type.
i've look up the msdn.it said the function is called when the view is first attached to the document.but my app has no document.it is a extension dll,and the view is just one of the views of the splitterwindow.
Does that do something to my app?
gucy
|
|
|
|
|
Hi Friends,
I need your Help. I want to know How Video Streaming is done. I don't know the MPEG file format.
If any one Knows, Plz tell me
Thanks to all of you.
|
|
|
|
|
|
Thanks DavidCrow,
I studied the website you have given. But my problem is different.
I want to read the MPEG file. I don’t know the Header format of the MPEG file. What it contains exactly.
The MPEG I have is Encrypted by some unwanted data. I want to remove it
|
|
|
|
|
raghute_h wrote:
The MPEG I have is Encrypted by some unwanted data. I want to remove it
Then you'll first need to decrypt the file before you can even attempt to read the MPEG's header.
|
|
|
|
|
But do you Know how the MPEG file is read and play.
Actualy I want the part of MPEG file which can i play, not the hole file
I am new in this Multimedia world
I dont know the API used to play the video file or signal
Plz help me
|
|
|
|
|
Hi Friends,
I need your Help. I want to know How Video Streaming is done. I don't know the MPEG file format.
If any one Knows, Plz tell me
Thanks to all of you.
|
|
|
|
|
What is the easiest way to associate a program app w/an icon? I've seen the MSDN website explaination, but it didn't work and the steps seemed really complicated. Does anyone know of any other methods that work? Thanks.
|
|
|
|
|
If you are using the doc/view architecture, simply call CWinApp::RegisterShellFileTypes in your InitInstance method after you have added your doctemplates.
onwards and upwards...
|
|
|
|
|
Hi,
Does anyone know how i can draw text on the client area of a window with the help of directX8? I know how to do it through the GDI, but i want to do it with directX8.
Greets,
jason
|
|
|
|
|
If you're using Direct3D, you have two choices: the ID3DXFont interface or the CD3DFont class in the SDK framework classes.
ID3DXFont actually uses GDI behind the scenes to allow for Unicode characters, but is quite slow as a result.
CD3DFont prerenders a set of characters to a texture, which is much faster but limits you to the character set.
- Mike
|
|
|
|
|
Hi Mike,
thanx, that was exactly what i was looking for. One last question: Is it possible to define the font type and the font size in the ID3DXFont interface?
greets,
Jason
|
|
|
|
|
There doesn't appear to be a way to modify the font parameters in ID3DXFont ; you need to specify the initial font parameters when you create the font via D3DXCreateFont (when you pass the GDI font handle).
- Mike
|
|
|
|
|
Can anyone tell me how I can get the path to My Documents folder?
Thanks!
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
SHGetSpecialFolderPath(..., CSIDL_PERSONAL, FALSE);
|
|
|
|
|
Thanks!
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
Try the function SHGetSpecialFolderLocation with CSIDL_COMMON_DOCUMENTS for the CSIDL value.
Appstmd
http://www.appstmd.com
|
|
|
|
|
i want to control lan net connection : luanch/shutdown!
ZHANGYIFEI
|
|
|
|
|
Hi to everybody,
I am developing a HotKey for my application. The RegisterHotKey function has following parameters:
RegisterHotKey(
HWND hWnd, // handle to window
int id, // hot key identifier
UINT fsModifiers, // key-modifier options
UINT vk // virtual-key code
);
I have values of fsModifier and vk in CString data type
and I want to use those value in RegisterHotkey
I tried using
UINT fsModifier = atoi(ModifierKey);
//ModifierKey is CString type
but it didnot worked .
Can some body tell me how to convert CString to UINT ??
Waiting for the reply
Rohit
|
|
|
|
|
Rohit Divas wrote:
but it didnot worked .
You have to be more specific about the problem. I will have to guess. Is there a compile error?
Try this:
UINT fsModifier = atoi((LPTSTR)(LPCSTR)ModifierKey);
John
|
|
|
|
|
I mean to say that there were no errors in the program . Still it didnot worked.
I debugged the application. The value of fsModifier in
UINT fsModifier = atoi(ModifierKey);
is coming 0.
I tried your way also but the result is the same.
Is there any alternative way to convert CString to UINT ?
Rohit
|
|
|
|