Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

Iceberg76

@Iceberg76
About
Posts
28
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Open a specific file in a MFC single document
    I Iceberg76

    Thank You for the help. I will try your method.

    C / C++ / MFC c++ question tutorial visual-studio help

  • Open a specific file in a MFC single document
    I Iceberg76

    Hello, Can someone help me figure out how to make my MFC single document application open a specific file type. I created the MFC single document application using the VS C++ 7.0 Wizard. It defaults to open all file types. I found the ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) in MyProject.cpp. How do I customize this so I can open a specific file type such as a .txt? I looked at the scribble example, but that is a multiple document type and I couldn't see how they did this without overriding OnFileOpen(). Is there a better example that I can learn from? I am assuming I am not supposed to overwrite the OnFileOpen, but where is this stored and once I select the file and click OK... Where is the filename stored? What is the correct way to do this? Thanks.

    C / C++ / MFC c++ question tutorial visual-studio help

  • Convert a string to DWORD
    I Iceberg76

    Despite the fact that WM_MAXIMIZE is a macro... If I set: DWORD test = 30343168; then the numerical value works the same with CreateWindow() as when I use: test = WS_MAXIMIZE|WS_OVERLAPPEDWINDOW; Is there no way to compute this numerical value without a compiler? Is this hex converted to binary then to numeric form?

    C / C++ / MFC tutorial question

  • Convert a string to DWORD
    I Iceberg76

    Thank You!

    C / C++ / MFC tutorial question

  • Convert a string to DWORD
    I Iceberg76

    Well I have a configuration text file that I read in when the app starts. I am using it so I can make easy changes without recompiling and to give to other developers so they can configure the display the way they want to... So I guess that's what I have to do since they are macros, huh? I'll just read the strings and compare them to an array of known macros and if they are the same I will set them accordingly. Any other suggestions or ideas will be appreciated. Thanks

    C / C++ / MFC tutorial question

  • Convert a string to DWORD
    I Iceberg76

    Hello, I am pretty new to Win32 programming. How do I convert a string to a DWORD? For example, I want to convert this value: char *String = "WS_MAXIMIZE"; into a DWORD value. After the conversion, the String should be equal to WindowStyle ( see below ) char *String = "WS_MAXIMIZE"; DWORD WindowStyle = WS_MAXIMIZE; Here are the correct numeric values: String = 0x0046c104 WindowStyle = 16777216 I tried type casting: char *String = "WS_MAXIMIZE"; DWORD WindowStyle = (DWORD)String; But that made WindowStyle = 9093936 and that's not what I want. Please tell me how to convert a string (hexadecimal) to a double word. Thank You.

    C / C++ / MFC tutorial question

  • Console window in Windows
    I Iceberg76

    Thanks for the response. I will look at ShellExecute. I need to create a win32 window for my graphics application. Can I still create a window with a console application. Currently I am using winmain, but I want to simultaneously launch a console. How do I do this? Can I use a console based application with a main and then create a win32 window? Thanks

    C / C++ / MFC question c++ debugging

  • Main Window Icon loading
    I Iceberg76

    I'm pretty sure you just need to add an icon as a resource and then name it: IDR_MAINFRAME Then when you create the mainframe it should be there. I don't think you need to manually load. Look here to help out in MFC: http://www.adminmod.org/karel/2/index.htm

    C / C++ / MFC question c++ help

  • Console window in Windows
    I Iceberg76

    Hello, I have created a Win32 Windows application that uses a WinMain() and WndProc(). Currently, my application runs within the application Window. I want to see the output of variables, but not inside my application window. Instead, I want to use the console window. Basically, I want to run my application and then if the programs debug flag is on then I want to open up a console window and start printing variables. How do I do this, because if I choose a console application there is no WinMain? In addition, how do I call an .exe from within my Win32 windows program. Like the cmd.exe and then another custom.exe within that console window? I do not wish to use MFC at this time. Thanks.

    C / C++ / MFC question c++ debugging

  • Perl with Visual C++
    I Iceberg76

    How can I integrate Perl with Microsoft Visual C++? I have both 6.0 and 7.0, but would appreciate any links or standard texts on this subject.

    C / C++ / MFC c++ question perl

  • MFC using Visual C++
    I Iceberg76

    Oh, sorry! I found the properties tab to enable a normal empty win32 into an MFC application.

    C / C++ / MFC c++ graphics tutorial question lounge

  • MFC using Visual C++
    I Iceberg76

    Thanks, Nice online samples! Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks

    C / C++ / MFC c++ graphics tutorial question lounge

  • MFC using Visual C++
    I Iceberg76

    Thanks, Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks

    C / C++ / MFC c++ graphics tutorial question lounge

  • MFC using Visual C++
    I Iceberg76

    Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You

    C / C++ / MFC c++ graphics tutorial question lounge

  • Automating Programs in Windows
    I Iceberg76

    Hello, Does anybody know of a way to automate both opening applications and various application calls (possibly .dll files) in Windows 2000 or XP? For example, I am developing a graphics application in C++. There are various repetetive tasks needed in order to prepare many of the application assets. Also, I wanted to use this program for testing purposes or to automate repetitive tasks for various applications I am using in Windows. Possibly record an action script and then I would be able to play the script at any time to perform the recorded task. This could also be applications that I am developing myself. Are there any libraries that exist that facilitate this in Windows? Are there any programs already in existence that are able to perform this task? Thank You.

    C / C++ / MFC c++ graphics testing beta-testing tools

  • Access to class in another file.
    I Iceberg76

    Thanks, No more cross-inclusion.

    C / C++ / MFC c++ csharp help question announcement

  • Problem accessing one class from another and vice versa
    I Iceberg76

    Hello, I am writing a application in Visual C++ .NET 7.0. I'd like to keep my classes in seperate files to keep things organized, but I am having difficulty accessing classes from within two files. Can someone help me find a solution accessing between files in this manner? I need to access methods and data back and forth in this manner, but I don't want the two classes to be in the same file. What am I doing wrong? Is there a different way to do this? Here is a simplified version: Class1.h #ifndef __Class1H__ #define __Class1H__ #include "Class2.h" class Class1 { public: Class1(); ~Class1(); //This doesn't work because it is in a different file! Class1(Class2* object); //This doesn't work because it is in a different file! Class2 obj; }; #endif // __Class1H__ Class2.h #ifndef __Class2H__ #define __Class2H__ //this is causing problems... #include "Class1.h" class Class2 { public: Class2(); ~Class2(); }; #endif // __Class2H__ Class1.cpp #include "Class1.h" Class1::Class1() { } Class1::~Class1() { } Class2.cpp #include "Class2.h" Class2::Class2() { } Class2::~Class2() { }

    C / C++ / MFC c++ help csharp question announcement

  • Access to class in another file.
    I Iceberg76

    Hello, I figured out the problem I was having, but I still don't know a good solution. If you take the code posted above... and add the following line to Class2.h: #include "Class1.h" So there seems to be a problem at the posted comments when I add this include. Why can't I link in this way, and what suggestions can anybody give me to avoid this sort of thing. Thank You

    C / C++ / MFC c++ csharp help question announcement

  • Access to class in another file.
    I Iceberg76

    Good advice, I will get the book. thanks

    C / C++ / MFC c++ csharp help question announcement

  • Access to class in another file.
    I Iceberg76

    Oops, well it appears that my simplified sample compiles. I was able to make the problem I was having go away, by declaring the class at the top of the Class1.h file: include... class Class2; class Class1; Even though it works for my simplified version, is there a better or correct way to do this?

    C / C++ / MFC c++ csharp help question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups