|
Majid Shahpouri wrote:
I realize that I should work with ODBC for writing a data base program that dont use Access files...
I use ODBC all the time to work with Access files. Why are you under the impression that you should not?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Look out for SQLAllocHandle function and relative in MSDN.
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
Hello,
I find this[^] very usefull...
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
I want to use my .swf file?
|
|
|
|
|
Use it for what ?
What exactly is your question ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Install Macromedia Flash Player and use it
ARSALAN MALIK
|
|
|
|
|
You could copy it to a floppy disk, then you could use a pair of scissors to create a summer hat. How about that?...
If you want to play it though, you could open it in a browser that has a Flash add-in.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
For list view ctrl, virtual function 'MeasureItem' needs 'DrawItem'. Is there a way to change item height by custom drawing, or WM_NOTIFY message?
Thanks very much.
|
|
|
|
|
Hello everyone,
I have a button created by flash MX,
I want to use this button instead of my
Button in a mfc app.
How?
Best wishes,
Thanks.
|
|
|
|
|
you mean using a bitmap button ?
TOXCCT >>> GEII power
|
|
|
|
|
I have a program which communicates with a GSM modem. I have used non-overlapped communications, so I have two threads, one which reads the port, and other which writes. I also want to use the WaitCommEvent function, to wait in the read thread the arrive of new data. The problem, is that if I want this functions correctly, I must write the command before the read thread come to the WaitCommEvent function. Why???? I could block the read thread befor de WaitCommEvent statement till I write, but if a RING command, for example, arrives at the port, this doesn't realise, so this is not a good solution.
Can somebody help me??
Thanks
|
|
|
|
|
why?
Sometime after compile a dll project, a ".lib" file has been built but sometime it was not built?
Thanks
|
|
|
|
|
I got string like this :"Rassul##Rasul#Yunussov";
And i want to tokenize it to strings : "Rassul" and "Rassul#Yunussov".
I know the function strtok - but it doesnt distinguish "##" from "#".
|
|
|
|
|
you have to get the # character from the string, and test its following character.
i'm about to post an article about something like that (parsing streams)... wait a bit (posted)
here is a like on parsing code : Visual Calc - A new dimension for the desktop calculator[^]
<font style="color:blue;">char</font> ch = str[NextChar++]; <font style="color:green;">
<font style="color:blue;">switch</font> (ch) {
<font style="color:blue;">case</font> <font style="color:purple;">'#'</font>:
{
<font style="color:blue;">char</font> nch = str[NextChar++];
<font style="color:blue;">if</font> (nch == <font style="color:purple;">'#'</font>) {
<font style="color:green;">
}
<font style="color:blue;">else</font> {
<font style="color:green;">
NextChar--;
}
<font style="color:blue;">break</font>;
}
<font style="color:blue;">default</font>:
<font style="color:green;">
}
TOXCCT >>> GEII power
|
|
|
|
|
Perhaps its wiser to choose a different form of formatting your strings. Why use '##' and '#', they already cause problems trying to distinguish them during parsing. How about using '$' and '%' or something like that. '##' and '#' clearly mean different things to you, so why use such similar signs?
Er zit een korstje op mijn aars.
|
|
|
|
|
If you're using MFC, use CString::Find() to find "##".
[insert witty comment here]
bdiamond
|
|
|
|
|
How about:
char *str = "Rassul##Rasul#Yunussov";
char *pos = strstr(str, "##");
char left[16], right[16];
strncpy(left, str, pos - str);
strcpy(right, pos + 2);
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi,
I need to get Unicode Values for characters of a Custom Font.
can anyone point me to some resources?
Thanks
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
I don't know, what is a Custom font. But generally, if you want to convert characters from Windows-125* (depending of localization of the OS) to Unicode encoding, use mbstowcs() function.
Robert-Antonio
"Love, truth and electric traction must gain victory over hate, lie and
diesel traction."
|
|
|
|
|
Thanks, I'll look that up....
What I meant by Custom font is an installed True Type font.
I have to read some data from an Excel file and write it as XML. Now the excel file uses this TTF for Devnagari Script. It contains Hindi characters. I have to convert these into Unicode if they are to be shown correctly in the XML (Or is there another way?)
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
Do you have the Devangari charset in your Windows localization?
Robert-Antonio
"Friends come and leave, but teddybears stay in forever."
|
|
|
|
|
Yes I do
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
So it's simple. If the Devangari charset is default on your system, use mbstowcs . When not, use MultiByteToWideChar , where you supply the Devangari charset codepage number. See MSDN for details about these functions.
Robert-Antonio
|
|
|
|
|
Hello:
I have MFC Dialogue based application , In the application I need to check the system time say for (12:00 AM) while the application is running , to do some code . I see that i should use worker threads , I read about it and tried to implement but with no avail.
I will wrote what i did :
in OnInitDialog()
_beginthreadex(NULL,0,myThread,NULL,0,0);
and my thread is :
UINT uCheckTime(LPVOID)
{
CCriticalSection cs;
cs.Lock();
SYSTEMTIME SystemTime;
GetSystemTime(&SystemTime);
DWORD dwHour = SystemTime.wHour + 2 ;
if(dwHour >= 13 )
{
//Do some work......
}
cs.Unlock();
return 0;
}
here this thread never fired!!
What can I do ?
Regards
|
|
|
|
|
Hi,
TRY USING AfxBeginThread function. The first parameter to this function is name of thread function in your case uCheckTime.
Hope this will help you
SUjan
|
|
|
|