|
you can create lib and use as all other libs
(i never tried to add obj between lib files but from project settings\link\object-library modules naming has to be possible too)
t!
|
|
|
|
|
Is obj file written on fortran.
Is source this file.
May i have access to this file if..add it to vc rpoject..?
If yes how?
THX.
|
|
|
|
|
How can I use timer functions in Win32?
I'm doing an alarm clock so I want to learn!
CocaCola
|
|
|
|
|
Hello, the codegurus around the world.;)
I'm not familiar with Win32 like C style code so much,
but this is my guess.
1) Use ::SetTimer API function.
2) Pick up WM_TIMER message at WinProc function.
3) Maybe wParam or lParam includes Timer ID.
Or someone helps this?
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
Hi,
I must introduce to you, KillTimer function for erase timer.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You should use a threaded timer. The windows timer messages are the lowest priority messages and cannot be relied on. There is no guarantee that they'll be processed on a busy system. There is a threaded timer class on CodeProject that I use all the time.
|
|
|
|
|
How do you open a unicode file, using the C++ standard library? So far, I can't see that this is possible (no Win32 API, or no wfopen()-just using plain C++ iostreams, how do you
open a unicode filename, say for eg., a Korean filename?).
Your help is much appreciated.
|
|
|
|
|
With the old C library, use _wfopen() . With the C++ library, use wostream /wistream /wiostream . With the Win32 API, use CreateFile() , but for this last one your app needs to either be built as Unicode, or call CreateFileW() directly. CreateFileW() will not work on Win 9x.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
Hi there, Mike
Seems like there's a misunderstanding-while I agree (and am aware of) with _wfopen (used in C) and CreateFileW (Win32) I am still not sure how you would OPEN a unicode file NAME using the C++ library.
You see, the open member of all the streams you mentioned (wostream/wistream/wiostream) all take a char* pointer, NOT a wchar_t* thereby not allowing me to pass a wchar_t string.
Please let me know if you come across anything informative. Thanks for your help!
Cheers,
Shanker
|
|
|
|
|
CreateFileW() takes an LPCTSTR for the filename
that converts to unicode
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Classic case of communication errors; let me make it clearer: how do I open a unicode file NAME using the C++ library? Like I said, I do NOT want to use the WIN32 or plain C functions. The question arises, because none of the functions that open a unicode file take a wchar_t pointer to the file name. They all take in a char*.
Hope this makes my question clear. Thanks for your efforts!
|
|
|
|
|
Ah, I understand now. Yeah, the basic_fstream and basic_filebuf classes don't accept wchar_t* filenames. A design flaw, I guess. If the STL code weren't such an impenetrable mess of garbage, I'd suggest deriving a class from basic_filebuf and basic_fstream that accepts wchar_t*.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
<<< In the name of GOD >>>
Hi all.
I used of CRichEditCtrl control in my program,
I want to change font in CRichEditCtrl without change all text font, for example:
Indicate by "Arial" font: Hadi is a good boy.
Indicate by "Comic Sans MS" font: He have many good friends.
How can i do it ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I FOUND MY ANSWER ...
I'M SO HAPPY.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Why - when I delete record in database (dbf-file) it was not deleting.
When i opnening the dbf-file by standart program (FOR VIEW DBF-FILES) then I can see that
record which was delete by my program (CRecordset::Delte) is absent- it's normal.
But when i run my program again I can see that that record present there ...
I was opened file in file_menager - (F4 - for editing) and seen that record which was delete
is inside file...(and size of file did't changing)
What must I do that delete record once and for all?
|
|
|
|
|
This is not a solution, but I think the problem is that records in dbf files are not physically removed until you pack the table. In most dBase type langs, delete only marks a record for deletion, then you call pack to permanently delete the record.
What you might look for is some sort of Oracle style call level interface type command that you can SQLExec against the database to pack it, but I don't know if such a thing exists for your driver/db engine.
|
|
|
|
|
Hello, the codegurus around the world;)
Actually, I don't understand that you want to delete the table or record in the table?
CRecordset::Delete() only deletes the record in the table, not the table itself.
If you want to delete the table, you can use SQL statement "DROP TABLE table_name".
Or, I misunderstand your question?
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
Hi Onishi.
I have question of you.
Can we delete table from database ? (if we can, please write code.)
Or only we can delete record from table ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hello, the codegurus around the world.
In fact, I don't have my time to write the code for you.
As long as you show your code to ask something, the people
helps you.
We can delete the table, but if the table has the foreign key, we can't delete
this table unless we take off this foreign key or delete the table with the origin
of the foreign key.
For this, we use SQL statement or member function of some class.
But, I often use SQL statement in ADO.
Client application of the database like SQL Server, Oracle, and so on has the capablility
of deleting the table. This means that we can delete the table at our application.
|
|
|
|
|
Why - when I delete record in database (dbf-file) it was not deleting.
When i opnening the dbf-file by standart program (FOR VIEW DBF-FILES) then I can see that
record which was delete by my program (CRecordset::Delte) is absent- it's normal.
But when i run my program again I can see that that record present there ...
I was opened file in file_menager - (F4 - for editing) and seen that record which was delete
is inside file...(and size of file did't changing)
What must I do that delete record once and for all?
|
|
|
|
|
Why - when I delete record in database (dbf-file) it was not deleting.
When i opnening the dbf-file by standart program (FOR VIEW DBF-FILES) then I can see that
record which was delete by my program (CRecordset::Delte) is absent- it's normal.
But when i run my program again I can see that that record present there ...
I was opened file in file_menager - (F4 - for editing) and seen that record which was delete
is inside file...(and size of file did't changing)
What must I do that delete record once and for all.
|
|
|
|
|
Hi .
What can I do to use return value.
Thanks a lot.
|
|
|
|
|
SHBrowseForFolder returns a pointer to an ITEMIDLIST. You can use the SHGetPathFromIDList() to retrieve the path of the folder selected. Use an IMalloc interface to free the memory pointed to by the ITEMIDLIST pointer.
TCHAR thePath[_MAX_PATH];
ITEMIDLIST* idl;
idl = SHBrowseForFolder(A_Previously_Initialized_BROWSEINFO);
if (idl)
{
if (SHGetPathFromIDList(idl, thePath))
Do_Something_With(thePath);
LPMALLOC lpMalloc;
if (SHGetMalloc(&lpMalloc) == NOERROR)
lpMalloc->Free(idl);
}
---
Multitasking: Screwing up several things at once.
|
|
|
|
|
How can I create an edit box in Win32?
I've tried msdn example but the control doesn't shown!
Have a look on this:
define EDITID 1
// Specify the edit control window style.
DWORD dwStyle = WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |
WS_BORDER | ES_LEFT | ES_MULTILINE | ES_NOHIDESEL |
ES_AUTOHSCROLL | ES_AUTOVSCROLL;
// Create the edit control window.
g_hwndEdit = CreateWindow (
TEXT("edit"), // Class name
NULL, // Window text
dwStyle, // Window style
0, // x coordinate of the upper-left corner
0, // y coordinate of the upper-left corner
CW_USEDEFAULT, // Width of the edit control window
CW_USEDEFAULT, // Height of the edit control window
hwnd, // Window handle to parent window
(HMENU) EDITID, // Control identifier
g_hInst, // Instance handle
NULL); // Specify NULL for this parameter when
// creating a control
Why cant I see it??
CocaCola
|
|
|
|
|
From the CreateWindow() docs:
CW_USEDEFAULT is valid only for overlapped windows; if CW_USEDEFAULT is specified for a pop-up or child window, nWidth and nHeight are set to zero. So you must give a width and height.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|