Need help in developing a form application
Hello, I have a HTML code and i need some help with developing a form application, is there a place where ican find step by step process since i am doing this first time and need help. issue: i have a...
View ArticleHow to increase font size in buttons
How to increase font size for a specific button? I tried to change the nHeight but it doesn't seems to change the font size. Any idea why? Code: CFont font;...
View Article[RESOLVED] How to refresh logon screensaver parameter changes?
I have a Windows service that may change the timeout of the logon screensaver in Windows (as described here.) To do that I change the following registry key to the timeout in seconds: Code:...
View Article[RESOLVED] How to increase font size in buttons
How to increase font size for a specific button? I tried to change the nHeight but it doesn't seems to change the font size. Any idea why? Code: CFont font;...
View ArticleGrab the screen(s) and invert their brightness
I have a visual impairment that makes it very hard for me to use the standard dark text on white background themes. I use High Contrast but many apps don't query the system for colors (I.E. aren't...
View ArticleHow do I make this code work for std::string type?
Code: class GetSettingsVisitor { public: HWND dlg_; int lastItem_; std::wstring lastItemName_; GetSettingsVisitor(HWND dlg) : dlg_(dlg) {} bool operator()(char const * group,...
View ArticleMDI Switch between tabbed and cascaded views
Essentially I have an MDI that I want to be able to switch between having all my views tabbed when one is maximized and having all my views cascaded or tiled to their previous sizes. The MFC app wizard...
View Articlewhat is the best way to read an array of chars
Hello, Thank you for taking time from your busy day to help me out. I am receiving a max of 50000 bytes from a socket. char packet1[50000]; recv(Socket, (char*)&packet1, 50000, 0); What is the best...
View ArticleHow to change a button colour?
May I know how to change a button colour using visual C++ ? Currently using visual studio 2010.
View ArticlePerforming the Same Calculation for Every Oscillation
I am reading from a text file and want to create a program that will perform the same calculation for every oscillation. The text file I'm reading from is attached to this post. A3.txt The program that...
View ArticleSimple query about String comparison ..
Hi , I am using Unicode in my MFC SDI project. I need String Comparison. I have used functions : _tcsncmp and _tcslen. The program works fine. I want to ask is there any other method to compare strings ?
View ArticleDependent types
In the following code where I'm experimenting with dependent types I'm getting these compiler errors:...
View Articlereading into array/2d array from mixed text file..
I know to read a strings into array and tables.. what is they are mixed up?? strings are just names ( 3 characters) and there are bunch of table.. the max size was set to 60 ex. text file JES DAN JEN ....
View Articlegetting port number of a packet in pcap file
Hi all,I am programming in c++ with 'winpcap' . I read a .pcap file and after I want to get the source and destination of packets in that file,but i coulden't get the right answer!!here is a piece of...
View ArticleCheck "Application Running .."
Hi , For my project I need to check whether my application instance is already running or not. I got the following code from Net .. [code] HANDLE mutex; mutex = CreateMutex( NULL, TRUE,...
View ArticleAutomation MS Word in Active-X container. Please help to properly create the...
Good day. I`m working with MS Visual Studio 6. Trying to connect Word server with my window. This is call server in my class CXContainerView, inherit from CScrollView: Code: void...
View ArticleSaving unicode strings to .txt files ..
Hi .. In my project , we need to create an Array of Unicode Strings . The Array will contain 5000 Strings. I need to write those strings to a text file which can be opened or edited with NotePad....
View ArticleProblems with iterators
So I have this problem with not being able to iterate over a vector in a nestled for-loop. Here's the nestled for-loop: bool innerHit = false; for (std::vector<Sprite*>::iterator outerIter =...
View ArticleProb with FloodFill
Hi, FloodFill is not working. I am using Visual C 6.0 in windows 7 environment. Its not filling a triangle. My code is: Code: void CFloodFillExView::OnDraw(CDC* pDC) { CFloodFillExDoc* pDoc =...
View Articlepaste a SetClipboardData(CF_DIB) image to powerpoint?
Hi I have a VisualC++ program to display image data to the screen. The data is a 24-bit, RGB bitmap that is properly shown using BitBlt(). I have a CopyWindow() function that puts the BITMAPINFO...
View Article