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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

mmhu

@mmhu
About
Posts
41
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • warning C4005: '_WIN32_WINNT' : macro redefinition
    M mmhu

    In one project, I have two classes containing #include < windows.h> in both .cpp files. Class 1 has macro of including the class 2 in the .h file. Class1.h #include "class2.h" Class1.cpp #include < windows.h> Class2.cpp #include < windows.h> During compilation, I received following warning message: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\Windows.h(16) : warning C4005: '_WIN32_WINNT' : macro redefinition command-line arguments : see previous definition of '_WIN32_WINNT' What is solution to avoid this warning?

    .NET (Core and Framework) csharp question c++ visual-studio

  • How to copy form files from one project to another without loosing the desinger view
    M mmhu

    I copied the form files (Form1.h, Form1.resX, Form1.cpp) from one project to another. When I opened the new project, the desinger view is lost from the Form1.h and the link between Form1.resX and Form1.h is lost as well. How to fix problem?

    .NET (Core and Framework) help c++ tutorial question

  • how to convert char array to const byte array in C
    M mmhu

    I need to use function byte*strcat(byte*, const byte*)in following strcat(byte* dest, ":"); I receive following warning: warning C4133: 'function' : incompatible types - from 'char [2]' to 'const byte *' How to resolve this problem?

    C / C++ / MFC data-structures help tutorial question

  • NMAKE error
    M mmhu

    I always receive following error when compile the win32 vs project written in C. But I checked the makefile and couldn't find any variable at the left of the equal sign is not defined. Any suggestions??? ------ Rebuild All started: Project: f1, Configuration: Debug Win32 ------ Performing Makefile project actions Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1063: missing macro name before '=' Stop. Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

    C / C++ / MFC visual-studio debugging tools help question

  • nmake error
    M mmhu

    I always receive following error when compile the win32 vs project written in C. But I checked the makefile and couldn't find any variable at the left of the equal sign is not defined. Any suggestions??? ------ Rebuild All started: Project: f1, Configuration: Debug Win32 ------ Performing Makefile project actions Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1063: missing macro name before '=' Stop. Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

    Visual Studio visual-studio debugging tools help question

  • How to determine an array is empty in VBA
    M mmhu

    Hi, Dave, I declared an array, then under certain conditions, this array will be filled with elements, otherwise it will stay empty. After get through the condition statements, I need to determine if the array is empty. I tried to use UBound() and LBound(), but I receive compile error on it when the array is not ReDim and filled with elements. what is the best way to determine if the array is empty? Thanks Vicky

    Visual Basic database data-structures help tutorial

  • How to determine an array is empty in VBA
    M mmhu

    I'm writting VBA macro code with array start index as 1 rather 0 Option Base 1 Dim array() As String If()Then ReDim array(5) 'fill array with elements Else ReDim array(0) 'This statement gives error End If I try to use UBound() and LBound() to determine if the array is empty, but can't make it work. Someone please tell me if there is other way to make it work.

    Visual Basic database data-structures help tutorial

  • How to display Exception after the Form is loaded
    M mmhu

    Uhm, the parent form can't have the error message box on it. I have a class called ErrorScreen displaying error message. Then there is the main menu Form1 (1). the Form invokes function classes**(2).** These function classes invoke more basic classes**(3).** These basic classes invoke the ErrorScreen class. But the ErrorScreen instances displays strangely in front of the main menu. The error icon, the text, and the button are not displayed, but empty holes on the ErrorScreen. If the ErrorScreen instances are replaced with Forms::MessageBox::Show(),the error messages are displayed correctly. But I need big size button displayed on the error message screen, therefore I need use the ErrorScreen class created myself. What senarias I shall look into in order to display those ErrorScreens correctly?

    Managed C++/CLI question tutorial

  • How to display Exception after the Form is loaded
    M mmhu

    There is an exception caught during loading the Form, but the Form will be loaded no matter what. I want to display that exception Message in front of the Form once the Form is loaded. If I use message box to display the exception Message inside the Form_load function, the Exception message box is behinde the Form. How can I make it displayed in front of the Form?:confused:

    Managed C++/CLI question tutorial

  • How to use WndProc or WindowsProc function
    M mmhu

    Yup, You are right. Thanks for the detail explaination for C++/CLI handle which is new to me. vicky

    Managed C++/CLI csharp c++ dotnet tutorial question

  • How to stop USB Mass Storage Device window popping out
    M mmhu

    Uhm.. This is the problem encountered during programming. I thought there would be some script can be used to solve it. Anyway, I fund the solution.:omg:

    Managed C++/CLI performance tutorial question

  • How to stop a auto window popping out?
    M mmhu

    Drive's properties has AutoPlay tag where listed content types of music, video, picture, and the mixed. I seleted "Take No Action" for all of them and retried the USB drive. But each time when the USB drive is plugged into the PC, the folder automaticly is opened up.:confused:

    C / C++ / MFC performance tutorial question

  • How to use WndProc or WindowsProc function
    M mmhu

    Thanks a lot Milton, It works. Vicky

    Managed C++/CLI csharp c++ dotnet tutorial question

  • How to stop a auto window popping out?
    M mmhu

    Yeah, it runs on XP. I've opened USB drive property and didn't find way to turn off autoplay. There are program options for different data stored in the USB drive. For example, if there is music stored in the USB drive, I can either pick windows media to play it or do nothing. I set all listed item with "No AutoPlay". But the USB drive folder opens up each time the USB drive is plugged into the PC. The USB drive I'm using will only store files. I need windows to assign drive letter for it , but not to open the folder for that drive. Please advise further Thanks Vicky

    C / C++ / MFC performance tutorial question

  • How to USB drive window popping out
    M mmhu

    Each time when I plug in USB memory stick to the pc, there is a window (file folder for the USB drive) pops out. I have an application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??

    .NET (Core and Framework) performance tutorial question

  • How to stop a auto window popping out?
    M mmhu

    Each time when I plug in USB memory stick to the pc, there is a window (file folder for the USB drive) pops out. I have application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??

    C / C++ / MFC performance tutorial question

  • Enabling/disabling a device
    M mmhu

    Each time when I plug in USB memory stick to the pc, there is a window pops out. I have application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??:confused:

    Hardware & Devices com json help question announcement

  • How to stop USB Mass Storage Device window popping out
    M mmhu

    Each time when I plug in USB memory stick to the pc, there is a window pops out. I have application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??

    Managed C++/CLI performance tutorial question

  • How to use WndProc or WindowsProc function
    M mmhu

    m.LParam is a System::IntPtr, I have problem to convert m.LParam to a PDEV_BROADCAST_HDRstructure. I tried: PDEV_BROADCAST_HDR lpdb = (PDEV_BROADCAST_HDR)(m->LParam); compiler gives error: error C2440: 'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR'No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called I tried: lpdb = (PDEV_BROADCAST_HDR)(m->GetLParam(__typeof(PDEV_BROADCAST_HDR))); compiler generates following error: error C3181: 'PDEV_BROADCAST_HDR' : invalid operand for __typeof, expected a fully defined managed type What is the correct way?

    Managed C++/CLI csharp c++ dotnet tutorial question

  • How to convert intPtr m->LParam to PDEV_BROADCAST_HDR
    M mmhu

    In my wndProc(Message* m) function PDEV_BROADCAST_HDR lpdb; case DBT_DEVICEARRIVAL: // Handle device arrival // treat lParam a pointer to a standard structure DEV_BROADCAST_HDR lpdb = (PDEV_BROADCAST_HDR)(m->LParam); // check if an volume device arrival if (lpdb->dbch_devicetype == DBT_DEVTYP_VOLUME) I received error: error C2440: 'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called How to resolve it????

    C / C++ / MFC help tutorial question
  • Login

  • Don't have an account? Register

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