Forum: C Nov 21st, 2005 |
| Replies: 5 Views: 1,927 |
Forum: C Apr 19th, 2005 |
| Replies: 5 Views: 10,502 The differences are highlighted at this site: http://www.objsw.com/docs/as_196.html
Good luck! |
Forum: C Apr 19th, 2005 |
| Replies: 2 Views: 2,230 Use a vector of type CPoint instead of a CPoint array.
#include <vector>
/* Only uncomment if its not already there */
//using namespace std;
....
void CProject5View::OnDraw(CDC* pDC)
{... |
Forum: C Apr 6th, 2005 |
| Replies: 5 Views: 1,979 Are the images dynamically loaded or static (resource)? What image format are you using for the images? |
Forum: C Mar 17th, 2005 |
| Replies: 2 Views: 2,078 Hey i have a tic tac toe program I can send you if you would like an example to work off of. Just give me a PM if your intrested. |
Forum: C Mar 5th, 2005 |
| Replies: 23 Views: 6,514 you need to #include <stdio.h> too |
Forum: C Mar 5th, 2005 |
| Replies: 23 Views: 6,514 CString CHexcalcDlg::ConvertDecToHex(int number_in)
{
return ltostr(number_in,16);
}
rewrote the whole function give that a try.
don't forget
#include <stdlib.h> |
Forum: C Mar 5th, 2005 |
| Replies: 23 Views: 6,514 i've updated my post on that response, check it out. The spaces thing was a typo, it wasn't the intent of my focus. The point is you are passing in a value to str_out then immedietly deleting that... |
Forum: C Mar 5th, 2005 |
| Replies: 23 Views: 6,514 sorry to confuse you, its hard to explain let me show you:
void CHexcalcDlg::ConvertDecToHex(CString& str_out, int number_in)
{
int index = 4;
str_out = " ";
char chr;
while(number_in... |
Forum: C Mar 5th, 2005 |
| Replies: 23 Views: 6,514 Since the only function that is liable to freeze is ConvertDectoHex (the other functions are standard API), you need to go into that function and find the exact line that is causing the problem.
... |
Forum: C Mar 5th, 2005 |
| Replies: 23 Views: 6,514 Try this, i think atoi() might be the problem if your dealing with unicode strings.
void CHexcalcDlg::OnDectohex()
{
// TODO: Add your control notification handler code here... |
Forum: C Mar 5th, 2005 |
| Replies: 23 Views: 6,514 I'm not much of an MFC coder myself and can't test ATM, but try this:
void CHexcalcDlg::OnHextodec()
{
// TODO: Add your control notification handler code here
GetDlgItemText(IDC_OP1,... |
Forum: C Mar 4th, 2005 |
| Replies: 23 Views: 6,514 ConvertHexToDec returns an int try SetDlgItemInt instead.
void CHexcalcDlg::OnHextodec()
{
// TODO: Add your control notification handler code here
GetDlgItemText(IDC_OP1, m_op1);... |
Forum: C Jan 13th, 2005 |
| Replies: 1 Views: 3,726 Basically a hook is a method to get another program to run your code. The most common way to hook a program is to take a dll it uses, overlaod a function within that dll with your own code, then have... |
Forum: C Dec 22nd, 2004 |
| Replies: 2 Views: 3,572 |
Forum: C Dec 22nd, 2004 |
| Replies: 2 Views: 3,572 Does anyone know how to have a windows program accept command line options?
For example a terminal program just needs a parameter in the main function to accept command line parameters, how can I... |
Forum: C Sep 20th, 2004 |
| Replies: 4 Views: 4,171 With newer versions of windows you acn also use the "shutdown" command by calling system(); |
Forum: C Sep 8th, 2004 |
| Replies: 3 Views: 8,243 Hey I got it working!!!!!!! After digging a bit more through MSDN I came up with a solution. The problem was that finding the item index, for the purpose of getting the text is unstable within the... |
Forum: C Sep 7th, 2004 |
| Replies: 3 Views: 8,243 Since the callback function pretty much enumerates the list, I made the buffers static to save space on the stack.
I did find something funny after playing with it. The two strings that are... |
Forum: C Sep 6th, 2004 |
| Replies: 3 Views: 8,243 I have a list view report style. Im trying to sort by click on a header. For some reason it does nothing.
This Peice of code is invoked when the column is clicked.
if (pnm->hdr.code ==... |
Forum: C May 27th, 2004 |
| Replies: 3 Views: 3,522 Google "SCSI", get a SCSI layer if you plan to target IDE devices. |
Forum: C May 5th, 2004 |
| Replies: 7 Views: 16,700 found a solution, ended up using pipes to redirect all streams
char psBuffer[128];
FILE *telnet;
/* Run telnet so that it writes its output to a pipe. Open this
* pipe with read text... |
Forum: C May 4th, 2004 |
| Replies: 7 Views: 16,700 I would liek to invisibly run a console application, capture it's output, and save its contents into a log window with an edit control. I know it's possible becuase i've seen it done, but how can I... |
Forum: C May 2nd, 2004 |
| Replies: 1 Views: 2,999 Such graphical design needs to utilize SVGA programming or you could get by with DirectX |
Forum: C Apr 17th, 2004 |
| Replies: 2 Views: 8,488 create a stream for file out put and write to that stream like u would with cout |
Forum: C Apr 13th, 2004 |
| Replies: 7 Views: 8,085 yikes, looks like a bios specfic ASM. |
Forum: C Apr 12th, 2004 |
| Replies: 0 Views: 2,178 How do you add those list catagories where when clicked sorts the list?
Such a list with the "catagory buttons" can be found in Kazaa, I would liek to implement a similar list in one of my... |
Forum: C Apr 11th, 2004 |
| Replies: 7 Views: 8,085 Try OLLYDBG (google it to find a download) its a good quality free debugger/disassembler (decompilers do not exsist).
Goodluck. |
Forum: C Apr 10th, 2004 |
| Replies: 7 Views: 8,085 not much you can do with it, maybe if you want to dump the bios, you could learn the USB protocol, but other than that not much to do.
what are you trying to accomplish? |
Forum: C Apr 9th, 2004 |
| Replies: 4 Views: 4,262 also search for 'USB Protocol' |
Forum: C Apr 6th, 2004 |
| Replies: 2 Views: 3,917 you will need to research the subase protcol then implement it in you code...sorry for being vague but im not exactly familar with that databse, if you could point out some documentation I would love... |
Forum: C Apr 3rd, 2004 |
| Replies: 3 Views: 5,096 i tried that no luck
Edit: my little brother posted under my name ;) |
Forum: C Apr 2nd, 2004 |
| Replies: 3 Views: 5,096 I want to write a program that will take a screenshot and save it as a jpeg thumbnail with custom compression settings.
I have no clue where to start, except for google, which didn't really help.... |
Forum: C Apr 1st, 2004 |
| Replies: 6 Views: 4,114 i think you mean || (or) instead of && (and), other than that what you posted should work.
As for the other ? , If you know the length of the file, you can stop immedietly once a certian... |
Forum: C Mar 28th, 2004 |
| Replies: 10 Views: 7,077 well it helped me at least, now I know what a nested function is :D |
Forum: C Mar 28th, 2004 |
| Replies: 1 Views: 13,909 is that the psuedo code you want to translate? or is that VB, sorry some times I can't tell the diffrence becuase I'm not well educated about VB.
If its VB you can try posting it in the VB... |
Forum: C Mar 28th, 2004 |
| Replies: 0 Views: 2,479 as i laid awake at night staring at the ceiling after hours of coding I started to wonder about a few things that really bugged me:
1) How can I create a function that will utilize custom JPEG... |
Forum: C Mar 28th, 2004 |
| Replies: 3 Views: 2,982 comparing line by line might be errorneous, but if not its worth a shot. If your trying to patch a file by getting the asic contents of one exe and comparing it with the asci contents of another,... |
Forum: C Mar 27th, 2004 |
| Replies: 10 Views: 7,077 oh, i see. Sounds like java, main is inside another class method, is that a correct analogy?
maybe the interview is a homework assignment :lol: |
Forum: C Mar 27th, 2004 |
| Replies: 3 Views: 29,466 well the standard C math library has all the simple standards, other than that you need to re-implement your own methods for the mathematics preformed in matlab...I warn you, matlab has its own... |