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
S

Stefan Dahlin

@Stefan Dahlin
About
Posts
19
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Looking for windows control
    S Stefan Dahlin

    I'm looking for the windows control that works like the control in the link below. http://www.codeproject.com/docking/crdxpcbar.asp The above control is a good beginning, but don't work like the one in windows. The windows control is used very often in the new XP user interface.

    C / C++ / MFC com design

  • Kazaa searchresult ctrl??
    S Stefan Dahlin

    I wonder if someone knows how i can get the same behaviour in a CListCtrl or CTreeCtrl or any other control, that the searchresult ctrl has in Kazaa. I want a tree ctrl with multicolumn and the possibility to drag and drop the columns. And the expandable part, the +/- signs, should always be in the first column. I almost found this in a ctrl on codeproject, but when the first column was moved the +/- signs where moved to, not pretty. It looks to me that Kazaa uses a CListCtrl with tree capabilities, but i'm not sure. And if it is, how can i get it in my application? I hope that someone knows what i'm talking about, and can help me.

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

  • Copy protection help
    S Stefan Dahlin

    Yes, i'm sure that your right, it is unique. But i would guess that not everyone have a network card, or i can not assume that they have. It must be some sort of number that can be found on every computer. The harddrive serial is good, if it only was the same all the time and didn't change after a format.

    C / C++ / MFC help question

  • Copy protection help
    S Stefan Dahlin

    I would like to make some sort of copy protection that only allows the software to run on one computer with the given registration key. First i thought that the user should send me the serial number of the c: drive, a number that my program would show and ask the user to send it to me and get a key in return, based on the serial number. But the serial number can be changed by the user, or when formatting the drive. Is there any other kind of serialnumber that i can find on every computer that can be the base for a registration key?

    C / C++ / MFC help question

  • Help with CMap
    S Stefan Dahlin

    I'm currently using a CMap because i need to associate a key with a specific value. But i also need to retreive the keys in a specific order. Is it possible to sort the keys in a map? Is there any other way to get the map functionality and be able to sort the keys?

    C / C++ / MFC help question

  • CRecordset and SQL problem
    S Stefan Dahlin

    Strange, a few minutes after i posted the question i got a step further. As it is now i have all my dates as strings in the database, and tried to use RFX_Text to bind a CString to that column to get the value. It seems that the result of a Table1.strDate AS strDateEx is a Date/Time column, at least i think it is. Becuase when i used RFX_Date i didn't get the error that i got previous. But instead i get "Error retrieving record.". So i still have some problems and could really need som help.

    C / C++ / MFC question help database

  • CRecordset and SQL problem
    S Stefan Dahlin

    Hi I have a SQL question that looks something like this: "SELECT DISTINCTROW Table1.strDate AS strDateEx, Sum(Table1.dfValue) AS dfValueEx FROM Table1 GROUP BY Table1.strDate;" What i want to do is that i have a table with dates. And i want one row for each day with the sum for that day in the dfValueEx column. I have no problem on getting the question to work when i try it in Access. My problem is that i don't know how i could make this work in a CRecordset. When i try i get a "Invalid character value for cast specification on column number 1 (strDate)" error. What does this error mean, and how can i get this to work?

    C / C++ / MFC question help database

  • ComboBox and mousebutton?
    S Stefan Dahlin

    Thanks for the reply. Unfortunately that doesn't work for me. Maybe i should have said that i'm using the CCheckComboBox that can be found on this site. And when a item is selected the list doesn't close. The user can check/uncheck mutiple items before the list is closed. I could go through all the items when the list is closed and look for what the user has selected. But to catch when the mousebutton is pressed on a item would be a better solution. If it is possible.

    C / C++ / MFC question

  • ComboBox and mousebutton?
    S Stefan Dahlin

    How can i catch the LBUTTONUP in the dropdownpart of a Combobox? What i would like to do is to know which item that has been clicked in the list. And the only thing that i can think of is catching the mousebutton and caluculate which item the user has clicked. Or is there another way?

    C / C++ / MFC question

  • vc7 application problems in win98
    S Stefan Dahlin

    Maybe i have this problem on another place in the code. The following code is a part of the OnToolTipText function: #ifndef _UNICODE if (pNMHDR->code == TTN_NEEDTEXTA) lstrcpyn(pTTTA->szText, strTipText, 80); else _mbstowcsz(pTTTW->szText, strTipText, 80); #else if (pNMHDR->code == TTN_NEEDTEXTA) _wcstombsz(pTTTA->szText, strTipText, 80); else lstrcpyn(pTTTW->szText, strTipText, 80); #endif This should handle the difference between XP and Win98, right? But it doesn't. My program works fine in XP, but terminates in Win98. Does it matter that i develop in vc7 on XP? And then try to run the exe on Win98? But i think that it should work anyway. Please, someone, help!!

    C / C++ / MFC debugging help question tutorial announcement

  • vc7 application problems in win98
    S Stefan Dahlin

    That is an interesting thought. But i'm using the plain CToolBar that is created automatically by vc7 when i created my project. And shouldn't that one work on win 98? I've found out that my combobox problem only occrus when i have a ordinary combobox dropdown list, and i can write text in the edit-ctrl part of the combobox. The program does not terminate when i exit a combobox dropdown list. And this is strange, since i'm using the same combobox class for both types. This is the worst problem of the two that i have, so any little tiny idea on what i can do to find out the problem is appreciated. And i think that it is strange that it works without any problem in win 2000 and xp.

    C / C++ / MFC debugging help question tutorial announcement

  • vc7 application problems in win98
    S Stefan Dahlin

    Hi I have a problem with a application that i have written in vc7. It works perfect in Win XP and Win 2000. But fails in Win 98 and Win ME. This is what happends. When i hover the mouse above a toolbar button the application terminates when the tooltip for the button is about to be shown. I tried to debug, and the debugger stop in comctl32.dll. But i don't know what to do about it. The second problem i have is that i have a list control where i can edit the items on every row. I can have a DateTime control, edit controls and comboboxes. It is no problem when i use the datetime or the edit controls. But if i begin to edit in a combobox, when i leave the combobox i get a GPF in User.exe. And the debugger can't give me any help. Im guessing that all this have something to do with different versions of system dll's. But i'm not sure, and i don't know how to find out which dll's to update. Or if i could work around these problems. So my question is how could i make my application work in win98? Because it should be possible to write a application in XP and then it should work in Win 98, right? And i don't think that i'm doing anything advanced. So i can't understand why it won't work all the way.

    C / C++ / MFC debugging help question tutorial announcement

  • CSizingControlBar help needed
    S Stefan Dahlin

    I can't seem to get any help from the messageboard in the article area. So i try here. I've seen many people asking on how to get a pointer to a view that is in the controlbar. But so far i haven't seen any code on how to do it. I'm not that very good on MFC and i could really need som help with this. I have added a CFormView to the controlbar, and it works great. But how do i get a pointer to that view? I need to set some variables, and call some functions but i need a pointer to be able to that. Please, could anyone help me?

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

  • Debugging vc++7 in win98??
    S Stefan Dahlin

    Do you know where i could read how to do this? Or if you have the time to explain. All i could find is how to set it up, but not how to use it. So i can attach to my program on the remote computer. Then what? But i can only use tcp/ip, don't know why the other option don't work. But Just-In-Time-Debugger sounds pretty nice, i could really make use of it.

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

  • Debugging vc++7 in win98??
    S Stefan Dahlin

    I'm using visual studio .net (vc++7) to make a program mailnly for win XP. But i would really like it to work in win98 too. And it almost does. It starts and some things work, not as intended, but they work. But, the program also crasch when doing some things. But since vs .net can't be installed in win98 i don't know how to debug the software to see if there is anything i could do to make it work in both 98 and XP. Shouldn't it be possible to write an application that works in both XP and win98 with vc++7?

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

  • Overload a function in a DLL?
    S Stefan Dahlin

    Is it possible to overload a function in another DLL? Let's say that i would like every program on my computer to call my own CWnd::CalcWindowRect or something like that? I think that i found some code that describes how to do this. But i don't understand how to use it. Is there someone that knows how this is done, and maybe have a simple example?

    C / C++ / MFC tutorial question

  • Working with IE
    S Stefan Dahlin

    How could i find out if a IE window has any toolbars or if the window is resizable? Some code example would be good. And if someone then knows how to find out the same things with Netscape i would be in heaven.

    C / C++ / MFC tutorial question

  • Automatic mouse and keyboard
    S Stefan Dahlin

    I would like to control the mouse and mouse klicks from my program. I also would like to know if it would be possible to simulate the keyboard from my program, so that the program could enter text in other programs. An example in VC++ for the two problems above would be appreciated.

    C / C++ / MFC c++ tutorial

  • Automatic mouse and keyboard
    S Stefan Dahlin

    I would like to control the mouse and mouse klicks from my program. I also would like to know if it would be possible to simulate the keyboard from my program, so that the program could enter text in other programs. An example in VC++ for the two problems above would be appreciated.

    Article Writing c++ tutorial
  • Login

  • Don't have an account? Register

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