Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3042 articles
Browse latest View live

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 Article


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 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 Article

Grab 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 Article


How 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 Article

MDI 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 Article

what 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 Article


How to change a button colour?

May I know how to change a button colour using visual C++ ? Currently using visual studio 2010.

View Article


Image may be NSFW.
Clik here to view.

Performing 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 Article

Simple 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 Article

Dependent types

In the following code where I'm experimenting with dependent types I'm getting these compiler errors:...

View Article

reading 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 Article


getting 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 Article

Check "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 Article


Automation 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 Article

Saving 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 Article


Problems 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 Article

Prob 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 Article

paste 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
Browsing all 3042 articles
Browse latest View live