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
J

Joschwenk666

@Joschwenk666
About
Posts
28
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C++ Function Alias
    J Joschwenk666

    Hi, I´m searching for the best way, to define some kind of as function alias in C++ I have the following class:

    class c1
    {
    private:
    CString FunctionWithADisturbingLongName(int i);
    }

    And i want the function to have the long function name, because the function of the function has to be explained in it :). But I want to have a shortcut to the function. I want to do this

    c1 test;
    test.short_1(1);

    instead of

    c1 test;
    test.FunctionWithADisturbingLongName(1);

    Of course I could declare and define short_1 as a member of c1, and then call FunctionWithADisturbingLongName in it, but there has to be a better solution. Thank you for helping!

    C / C++ / MFC c++ algorithms learning

  • KERNELBASE Exception
    J Joschwenk666

    Hello, I finished an update for an Visual C++ application. The version before works without problems, and I did no change at my compiler Settings. But on all Computers cxcept of my Development machine, I get the following exception: Unhandled exception 0xE0434F4D (UNKNOWN TYPE) caught at address 0x7697B727 in the thread 4532. -> Registers: EAX = 0x0018F220, EBX = 0xE0434F4D, ECX = 0x00000001, EDX = 0x00000000, ESI = 0x0018F2A8, EDI = 0x0033B290, EBP = 0x0018F270, ESP = 0x0018F220, EFlags = 0x00000212, CS = 0x0023, SS = 0x002B, DS = 0x002B, ES = 0x2B, FS = 0x0053, GS = 0x002B -> Last error: 0x000000B7 -> Call stack (thread 4532): KERNELBASE(?) : RaiseException(0xE0434F4D,0x00000001,0x00000001,0x0018F2A8,0x84CD36CD) + 88 bytes -> Call stack (thread 3568): ntdll(?) : ZwWaitForMultipleObjects(0x04CFFE18,0x04CFFE8C,0x00000000,0xFFFFFFFF,0x00000000) + 21 bytes -> Call stack (thread 3608): ntdll(?) : ZwWaitForSingleObject(0x00000208,0x000007D0,0x00000000,0x76711141,0x0548FCFC) + 21 bytes -> Call stack (thread 3864): ntdll(?) : ZwWaitForMultipleObjects(0x00000000,0x0776FFD4,0x773A9F02,0x003A26E8,0x7032659A) + 21 bytes -> Call stack (thread 4300): ntdll(?) : ZwWaitForWorkViaWorkerFactory(0x00389F98,0x0786FFD4,0x773A9F02,0x00389F98,0x70C2659A) + 18 bytes -> Call stack (thread 4600): ntdll(?) : ZwWaitForWorkViaWorkerFactory(0x00389F98,0x079AFFD4,0x773A9F02,0x00389F98,0x70DE659A) + 18 bytes -> Call stack (thread 3496): ntdll(?) : NtDelayExecution(0x0000EA60,0x00000000,0x07AEFF78,0x7682580C,0x0000EA60) + 21 bytes -> Computer configuration: OS type: WIN32 NT OS version: major 6, minor 1, build 7600 Number of processors: 2 Processor type: GenuineIntel, stepping 10, model 7, instruction family 6 Processor name: Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz Processor features: FPU, MMX, SSE, SSE2, CLFLUSH, RDTSC, CMPXCHG8B, CMOV More processor features: VME, DE, PSE, MSR, PAE, MCE, APIC, SEP, MTRR, PGE, MCA, PAT, PSE36, FXSR, DS, SS, TM I have no idea where I could start searching the problem. Can somebody help me? Thank You, Johannes

    C / C++ / MFC help c++ announcement asp-net algorithms

  • CLI and Visual Studio 2008: IntelliSense Does not work
    J Joschwenk666

    Hallo, I try to use the .NET 2.0 Framework in Visual Studio 2008 to open an excel File, write some data/cell style info in it, and show it to the user. I use the Use Visual Studio 2008 C++/CLI to Automate Excel[^] Tutorial. So I have something like that: <pre>Excel::Application^ exApp = gcnew Excel::ApplicationClass();</pre> but I have one big problem: IntelliSense code completion does not work, he does not find any options for exApp-> and I want to open a worksheet and I don`t know which variables the exApp->Workbooks->Open Function needs, for example. Can someone tell me how I get the IntelliSense for the Managed Code to work? Thank you!

    Managed C++/CLI csharp visual-studio tutorial c++ com

  • Redirect Message Box Messages,
    J Joschwenk666

    Thank you for the Link, I will try this. As I described i`m working at a Windows Service. It is a loop that changes things in a database and send mails and things like that, so there is no user in front of the computer at all, and when a message box pops up, the whole service stops, and mails are not sent anymore. So this service has to continue running when an error occurs. I just want the error in a logfile to see what happened and fix it later.

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

  • Redirect Message Box Messages,
    J Joschwenk666

    Hallo, I have a Windows Service written in Visual C++. It`s a loop that does certain things, and starts from the beginning after waiting a few seconds. My problem is, that when there occurs an error in the code, a messagebox pops up. And the code is not executed anymore, because you have to click on "ok" first. The messagebox is showed from some external library functions, so I can`t go to the source code. Is there any possibility to redirect all message boxes to a logfile or something like that, and continue executing the program without a click by the user? Thank you!

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

  • Remove Replication Artefacts from MSSQL 2005 Database
    J Joschwenk666

    Hallo, I have a database copy of a live database for development. On the live database is running a replication, but in the dev database it is not. However there are replication contraints and trigger in the dev database, and I can`t, for example, add columns to tables. How can I delete all this replication artefacts? Thank you for your help!

    Database database question sql-server help tutorial

  • Too Stupid for CListCtrl
    J Joschwenk666

    Oh, I`m really stupid: I put a Listbox Control on my form, not a List Control Control.... Tank you for your effords.

    C / C++ / MFC question

  • Too Stupid for CListCtrl
    J Joschwenk666

    Doesn`t work. My Code is now:

    m\_lstAssignments.ModifyStyle(0,LVS\_LIST);
    
    m\_lstAssignments.InsertColumn(0, \_T("Description"), LVCFMT\_LEFT, 100);
    m\_lstAssignments.InsertColumn(1, \_T("Column2"), LVCFMT\_LEFT, 100);
    m\_lstAssignments.InsertColumn(2, \_T("Column3"), LVCFMT\_LEFT, 100);
    m\_lstAssignments.SetColumnWidth(0, LVSCW\_AUTOSIZE\_USEHEADER);
    m\_lstAssignments.SetColumnWidth(1, LVSCW\_AUTOSIZE\_USEHEADER);
    m\_lstAssignments.SetColumnWidth(2, LVSCW\_AUTOSIZE\_USEHEADER);
    
    m\_lstAssignments.InsertItem(0,"TEST");
    

    Nothing happens, the List is just empty, no header columns, no items... Are there maybe propertys I have to set for my list in Resource Form View?

    C / C++ / MFC question

  • Too Stupid for CListCtrl
    J Joschwenk666

    I tried

    m_lstAssignments.ModifyStyle(0,LVS_REPORT);

    and

    m_lstAssignments.ModifyStyle(0,LVS_LIST);

    but nothing changes. Another Idea?

    C / C++ / MFC question

  • Too Stupid for CListCtrl
    J Joschwenk666

    Hallo, I`m trying to add an Item in a CListCtrl List, but it does not work:

    m\_lstAssignments.ModifyStyle(0,LVS\_REPORT|LVS\_LIST);
    
    m\_lstAssignments.InsertColumn(0, \_T("Description"), LVCFMT\_LEFT,-1);
    m\_lstAssignments.SetColumnWidth(0, LVSCW\_AUTOSIZE\_USEHEADER);
    
    m\_lstAssignments.InsertItem(0,"TEST");
    

    The List Control is just empty (no Header, no Items). What am I do wrong? Thank you!

    C / C++ / MFC question

  • Best way to open a HTML file from an URL
    J Joschwenk666

    Hallo, I try to open the html return from an Internet URL, for example http://leavemusic.de/live/leavemusic/index.php, and I want to get the html code in a CString. What is the best way to do it? It does not work with CFile for me. Thank you!

    C / C++ / MFC question php html database tutorial

  • Windows XP Problems since updating from VS2005 to VS2008
    J Joschwenk666

    Thank you, VS2008 sets WINVER to Windows Vista. I now set WINVER in the stdafx.h files of my DLLs to WinXP and now it works. This is the greatest forum in the world! :)

    C / C++ / MFC help csharp visual-studio question

  • Windows XP Problems since updating from VS2005 to VS2008
    J Joschwenk666

    Hallo, I upgraded from Visual Studio 2005 to Visual Studio 2008, and converted my Project from from VS2005 to VS2008. But now I get an Error in the following lines:

    // Get the current font
    LOGFONT lFont;
    NONCLIENTMETRICS ncm;
    ncm.cbSize = sizeof(NONCLIENTMETRICS);
    VERIFY(SystemParametersInfo(SPI_GETNONCLIENTMETRICS,
    sizeof(NONCLIENTMETRICS), &ncm, 0));
    lFont = ncm.lfMessageFont;

    In Windows XP SystemParametersInfo() returns false, and there are the following Values in ncm after executing the SystemParametersInfo() Function: Screenshot When I open my Project in Windows 7, it works without problem. In XP I get an access exeption in msvcr90d.dll when I ignore the failed execution of SystemParametersInfo. Can someone help me? Thank you!

    C / C++ / MFC help csharp visual-studio question

  • Windows XP Problems since updating from VS2005 to VS2008
    J Joschwenk666

    Sorry, wrong Forum, please delete this Thread Hallo, I upgraded from Visual Studio 2005 to Visual Studio 2008, and converted my Project from from VS2005 to VS2008. But now I get an Error in the following lines:

    // Get the current font
    LOGFONT lFont;
    NONCLIENTMETRICS ncm;
    ncm.cbSize = sizeof(NONCLIENTMETRICS);
    VERIFY(SystemParametersInfo(SPI\_GETNONCLIENTMETRICS, 
    	sizeof(NONCLIENTMETRICS), &ncm, 0));
    lFont = ncm.lfMessageFont; 
    

    SystemParametersInfo() returns false, and there are the following Values in ncm after executing the SystemParametersInfo() Function: When I open my Project in Windows 7, it works without problem. In XP I get an access exeption in msvcr90d.dll when I ignore the failed execution of SystemParametersInfo. Can someone help me? Thank you!

    Managed C++/CLI help csharp visual-studio question

  • Windows 7 compiled project does not run on Windows XP anymore
    J Joschwenk666

    Hallo, I worked with a Windows XP / Visual Studio 2005 Development environment until a few weeks. Now I upgraded to Windows 7 / VS 2008, and after the conversion of my Project everything works fine in Windows 7. Then I tried to run my Win7/VS2008 compiled version at Windows XP, and I get an "Unhandled exception 0xC0000005 (ACCESS_VIOLATION)" Error. Are there some compiler Vars I have to set in my Visual Studio 2008 on Windows 7, that my Program works correctly in Windows XP? Or do I really have to set up Visual Studio 2008 in On a WinXP machine to find the error?

    C / C++ / MFC visual-studio csharp help question announcement

  • Administration Rights for my Application by Token
    J Joschwenk666

    Hi, because of the CRegistry class and some other classes in my Application I need to have Administration rights for it. I want to have the same effect like set the "Run programm as Administrator" checkbox in the compatibility options of my Application, but in my Visual C++ code. I`m using the Visual Studio 2008. I discovered, that AdjustTokenPrivileges is the function I probably need, but I don`t understand how to use it. I get my token using the following lines:

    HANDLE hToken = NULL;

    if (!OpenProcessToken(GetCurrentProcess(), TOKEN_DUPLICATE,&hToken)) {
    AfxMessageBox("Error");
    }

    CloseHandle(hToken);

    But I don`t know how to set the Privileges to the token, and I don`t understand how to set it for my whole application? Can someone help me? Thank you!

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

  • Using the CRegistry class
    J Joschwenk666

    Old Thread, but I had the same problem with CRegistry class in Windows 7. But my compiled Program didn`t have the problem, so I just activated the "Run as Administrator" option for my Visual Studio, and CRegistry could read the Registry Keys...

    C / C++ / MFC c++ windows-admin debugging help question

  • How to get the width and height of the Form Template
    J Joschwenk666

    But the Problem is, that I get the current size of my form with GetWindowRect(). If it has already been scaled to small, some of the form controls will not be shown...I need the height and width of my Form as I see it in the form Editor...

    C / C++ / MFC c++ help tutorial question learning

  • How to get the width and height of the Form Template
    J Joschwenk666

    Hallo, I use a tabbed Dialog, which shows several Dialogs in it. The tabbed Dialog is resized to the size of its MDI Window. The problem is, that if the MDI Window is resized to a smaller size then the dialog in the tabbed control, the dialog in the tabbed control is not shown completely. So I want to know not the window rect of the dialog in the tabbed dialog, but the size of my form template, which I designed in the form editor of Visual C++ 6 So my main question is: Is it possible to get the height and with of my form as it is in the editor, so to speak the size of my, for example, IDD_MAIN_DIALOG resource my CDialog derived class? Thank you for your help!

    C / C++ / MFC c++ help tutorial question learning

  • Determine the language of the OS
    J Joschwenk666

    Hallo, I need to determine the current installed language of the os in Visual C++ 6. Can someone help me? With which class I can get this value? Is it saved in the registry? Thank you for helping me!

    C / C++ / MFC c++ windows-admin help 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