|
A value is returned in the eax/ax/al register. Because a one byte bool only has to zero out the register al (xor al, al). The high bits of the [e]ax register may be set to a non-zero value.
|
|
|
|
|
Hi Everyone,
I am working on a MFC project in VS2008. I have a very long form which need scrolling. At the end of the form i used a data time control and when i select a dated at runtime. The form jumps to the start of the screen.
Did anyone face this kind of issue?
Any suggestions will be helpfull.
Regards,
Kasi
|
|
|
|
|
Hi All,
Seems that, despite the incredibly easy steps of getting HINTS (tool tips) going using ultimate grid, they don't seem to want to show up.
We have done the following:
1. Added UseHints(TRUE); to the OnSetup() func.
2. Wrote code to handle a tooltip in the OnHint() handler.
Could this be because the Grid is being put into an ActiveX control and there is some crazy windowing issue happening here?
Any help would be great,
Jt
|
|
|
|
|
Hi
want to create UGrid control as ActiveX or COm to use it from C#
can you help me out?
Thanks
CC
chetan
|
|
|
|
|
When an item in a treeview is selected it is colored blue. But if you set the focus on another control the selected item keeps selected but has no visual clue for this, you can't see which is selected. Is there a way to change the background of the selected item using WinAPI-function and/or C(++) only?
Thanks
Rozis
modified on Tuesday, July 28, 2009 6:02 AM
|
|
|
|
|
Try adding the TVS_SHOWSELALWAYS style to your tree control.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Simple and effective...
Thanks
|
|
|
|
|
Hi
I wanna set the fields value of a PDF file via MFC.
I know how to do it for MSWrod, but I have no idea how to do it for a PDF file
any idea?
www.logicsims.ir
|
|
|
|
|
i dont think it will be easy doing the PDF writing using MFC.
use the below mentioned library named libharu, it can used to read and write PDF files
http://libharu.sourceforge.net/[^]
all the best
Величие Бога не может быть недооценена.
|
|
|
|
|
Hey
I want to extract a string from a text file.
The file name is "info.txt"
Inside the text file there is a field called, "Age = 23"
Now i want to extract that "23" from the Age.
I know its easy to do that on an ini file, with its key name.
But how to do that on a text file.
|
|
|
|
|
If you're using MFC, you can use CStdioFile or CFile . With Win32, you could use ReadFile() or use the C++ stream functions as well. I'm picking the easiest and showing you an example:
CStdioFile csf;
CFileException cfe;
if(!csf.Open(_T("C:\\Temp\\rough.txt"), CFile::modeRead, &cfe))
{
AfxMessageBox(_T("Unable to open the file"));
return;
}
CString szBuffer;
csf.ReadString(szBuffer);
int nFind = szBuffer.Find(_T("="));
AfxMessageBox(szBuffer.Mid(nFind+1));
Contents of file:
age = 23
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I am changing my application to use the Feature Pack 2008 to get the new "look". One of the problems I ran into, is How to change the GetToolBarCtrl()? Here is a snippet:
CToolBar m_wndGraphToolBar;
CToolBarCtrl *pGraphToolBarCtrl;
pGraphToolBarCtrl = & m_wndGraphToolBar.GetToolBarCtrl();
pGraphToolBarCtrl->HideButton(nID, TRUE );
But when I change CToolBar to CMFCToolBar, I get: 'GetToolBarCtrl' : is not a member of 'CMFCToolBar' ?
How do I replace this? Anyone ran into this one?
Thanks
|
|
|
|
|
Hi,
Did you find the solution of this problem? I am also stuck with this problem.
|
|
|
|
|
Hi,
I want to know about mouse programming.Actually i want to do is that there is a *.docx file in my computer(windows-XP)and i have a c program which can read the content of *.docx file.so first i have to give input(the location of the *.docx file) to that C program then it can read the content of that *.docx file.I want that when i click on *.docx file then it will be input for that C program.So how can i do this???
Please help me.....
-Ravi Joshi wanna ask about mouse programming.............
|
|
|
|
|
Make a file assiocation telling when the user clicks on .docx-file your program is run (with the .docx-file as a commandline parameter).
Rozis
|
|
|
|
|
Hey Rozis .
The same thing i want to ask you that how do to that program in C? Please help me Please....if you have any website link or any C program of that type please give me or simply mail me in ravi2008joshi@gmail.com
|
|
|
|
|
I have buffer of data coming in and I will try to store in the as below struct would this work.
struct {
int flag,
char check,
vector<char> data,
}Packet;
Packet = Buffer; (assigning buffer information to Packet Struct)
Will vector will be assigned data auromatically or I have to use "push.back" inorder to get the data stored in vector...
THANKS!!!
|
|
|
|
|
in C++, the default struct assignment operator does a member-wise assignment from src to dest. and vector's default assignment operator will copy the contents of the src vector to the dest, automatically.
so, no, you shouldn't have to do any push_backs.
|
|
|
|
|
i dont know how to implement polynomial addition with array pls guide me
Beulah
|
|
|
|
|
I've just googled your "question" and found a few implementations.
Since I'm no expert on polynomial additions, I cannot say if they are good or not.
Have fun looking at them and adapt them to your particular situation.
This signature was proudly tested on animals.
|
|
|
|
|
Hi,
I have written an application to get notified when any event is written to Application Log.When the code notifies I collect the recently written events and put them in a text file. ( I have reffered the http://msdn.microsoft.com/en-us/library/aa363677(VS.85).aspxto develop this application)
But when Application log is full the code is still waiting for an event to occur and never notifies.
The question is that whether the NotifyChangeEventLog() function notifies if an Application Log is full.
Is this the default behaviur of the notifyChangeEventlog() function?.If it is so is there any thing that I can do to handle this situation.
Please help me in solving this.
Thanks in advance
ARD
|
|
|
|
|
Raghu.Amil wrote: But when Application log is full the code is still waiting for an event to occur and never notifies.
The question is that whether the NotifyChangeEventLog() function notifies if an Application Log is full.
Per MSDN:
The NotifyChangeEventLog function enables an application to receive notification when an event is written to the specified event logfile.
Since nothing has been written, I guess not.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hey Friends
I have a setup which copies some files and registers few com dlls and i have a network where i wish to install my application.
Now is there any automatic way of doing so or i have to run the setup on all computers indivually?
Regards
|
|
|
|
|
Excuse any ignorance im just a lowely .NET programmer and have very little c++ experience
So i'm trying to disect vssver2.scc files for forensic purposes (don't ask ) and have found some information. mainly from here: http://alinconstantin.dtdns.net/WebDocs/SCC/VssVerScc.htm[^]
Towards the bottom of this page it gives some hint as to the structure of this file:
A vssver.scc file is composed of 3 sections:
* a FileHeader section of 32 bytes size
struct FileHeader
{
DWORD dwSignature;
BYTE[16] arrDatabaseGuid;
DWORD dwChecksum;
DWORD dwProjectID;
DWORD dwFileEntries;
}
* a number of FileEntry sections, each of them 16 bytes, one entry per each file tracked by the vssver2.scc file
struct FileEntry
{
DWORD dwFileID;
DWORD dwFileChecksum;
DWORD dwFileTimestamp;
DWORD dwFileVersion;
}
* a FileNames section in the end of the file that contains
o The null-terminated project name associated with this vssver2.scc file
o A list of null-terminated file names that have entries in the FileEntry section
I have writeen a small c# app to read this information and I just wanted to check a few things.
1) is a DWORD is akin to a uint in .NET? In code using a BinaryReader I have uint myint = BitConverter.ToUInt32(reader.ReadBytes(4) ,0); - does that look right?
2) I was assuming that the field dwFileTimestamp would be a c++ time_t so I had the code DateTime dt = new DateTime(1970,1,1).AddSeconds(dwFileTimestamp); but this does not produce expected results (dates all over the place from 2064 to 2001). Question is, is there any other usual way that dates/times are stored in c++ ? any weird ones that are not really used any more? Any ideas?
TIA
|
|
|
|
|
Hi Jamie,
J4amieC wrote: 1) is a DWORD is akin to a uint in .NET? In code using a BinaryReader I have uint myint = BitConverter.ToUInt32(reader.ReadBytes(4) ,0); - does that look right?
DWORD is an unsigned long .
J4amieC wrote: 2) I was assuming that the field dwFileTimestamp would be a c++ time_t so I had the code DateTime dt = new DateTime(1970,1,1).AddSeconds(dwFileTimestamp); but this does not produce expected results (dates all over the place from 2064 to 2001). Question is, is there any other usual way that dates/times are stored in c++ ? any weird ones that are not really used any more? Any ideas?
Is there a way you could reverse-store the values (tell what would be stored in the file in the DWORD field for a given date)? Or, can you give me an example of the value in the file and the value that you expect? (Or you just have values in the file and don't know what it may correspond to?)
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|