Hi I am using Visual C# on .NET 2005. I have a treeview in which i have implemented drag and drop and it works correctly. Currently I am trying to implement the auto scroll up and down when the user drags a node near the top or the bottom of the tree. Can anyone give me some ideas on how to do...
hi i have an error from my c++ compiler that says
"Invalid combination of type identifiers"
I have no idea what that means and can't seem to get anywhere.
It says the error is at the line of my class declaration
class My_Class <-- fails here
{
public: ...
...
...
}
im using the...
I usually do all my programming research online. However, I want to buy a good solid c++ book for reference. Does anyone have good suggestions for a solid c++ book. Im not looking for a beginner's book. I'm looking for something that is almost like a reference with good sample code. I was...
Your problem is not in the cin, but rather the last cout statement. You cannot do computations while doing a cout. I rewrote the last part of the code and it works.
int OASDI_avg = OASDI / WeekWage;
int medicare_avg = Medicare / WeekWage;
int fed_avg = Federal / WeekWage;
int...
Hi I am having a problem with the calling of this function:
OnLButtonUp(UINT nFlags, CPoint point)
My GUI has a display area with some controls on it such as buttons, edit boxes etc. I am trying to trap the event when the user clicks the left mouse button and when the user lets go of the left...
Hi in visual c++, how do you find out the hostname of the machine that the code is running on? Also is there a way to mount a network drive through c++? i am on an NT4 sp6a system. Thanks in advance.
...3000+ frames, my computer would freeze for like 10 seconds, then go back to writing again. I am using windows NT. Below is my code snippet:
//***************************************
unsigned short * startLoc;
HANDLE hFile;
HANDLE hMemMap;
OFSTRUCT finfo;
hFile = (HANDLE)...
it works good thanks. But in the parameter where you put the file to run, it expects absolute path meaning i have to hardcode the path. I wonder if there is a way to use relative path? please help thanks.
Hi all, i am having problems making a system call to run notepad.exe. I did
system("notepad.exe");
this runs ok, but it pops up a dos window in the background which i do not know how to disable.
Ive tried using the _exec functions namely _execv and _execl, but they seem to not run...
Hi I used a freeware program called shalom help maker to make a windows help file for my vc++ 6 MFC application. This freeware program created a .hlp file and bunch of other files. Now my question is how do i link this hlp file to my application so my app can use this hlp file? Please help thanks.
...have samples or examples of writing a file out using Memory Map IO? I need to write a file out using very little cpu usage so I heard that Memory Map IO works well. I have some code I tried and it is able to write out a char*. But I cannot write out a file of integers or other types. Please help.
Hi here is my situation. My application takes a bitmap and displays it to the screen in windowed mode(ie not fullscreen). The display was working fine and video was being updated very fast. However, something happened and my program crashed. Now when i run the program again, the video is being...
Hi my main application is a dialog. I want the form to be automatically maximized when the application starts up. Does any1 know how to do this? I tried putting
m_nCmdShow = SW_SHOWMAXIMIZED;
before the DoModal() call, but that didnt work. Any ideas? Thanks.
I have been working with the CBitmap class to set up a bitmap object. I tried to use the CPictureHolder class to display the bitmap object i created. However, now i am running into the problem in that CPictureHolder only takes static bitmaps. I cannot update the bitmap on the fly. Someone told...
Hi does any1 know of a good source for information on displaying bitmap data to the screen? I have data for bitmaps and need to display it to the screen, but i am not sure if there is a mfc class that handles this or are there better means of doing this? please help thanks.
I have been trying to pass an instance of my form1 into form2. However, im not having much success. In my form1 I have something like this:
dim frm2 as new Form2(Me)
and in form2, Im guessing this is the constructor that vb .net generated for me so I just changed the parameters
Public...
Hi i have two forms, form1 and form2. form1 is my main class. Both form1 and form2 inherits System.Windows.Forms.Form. In order to use the methods and variables in form2, i had to instaniate form2 by doing:
dim frm2 as new form2()
Now in form2 I want to use the variables and methods in form1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.