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
C

chaitannya_m

@chaitannya_m
About
Posts
24
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to use a DLL to create a simple exe.
    C chaitannya_m

    A simple exe project, copy pasted the code in the Form page.

    Visual Basic help php tutorial

  • How to use a DLL to create a simple exe.
    C chaitannya_m

    Hello Everyone, I am trying to code a program in VB6 where i have a DLL. My aim is to call some functions from the dll. I am totally new to this VB envoirnment and hence require some help. Actually this is a part of PHP project which is to be interfaced with some other application through this dll. The dll guys gave this code and i simply copy pasted this code in VB application. The minute i compile the code i get an error "Constants, fixed length strings, arrays, user-defined types and declare statements not allowed as public members of object modules." This is the part of the code, i am getting error on the very first line of the code. Option Explicit Declare Function RTSOpen Lib "RTSLINK.DLL" Alias "Open" () As Long Declare Function Send Lib "RTSLINK.DLL" (ByVal strRequestXML As String) As Long Declare Function GetLastErrorMessage Lib "RTSLINK.DLL" () As String Public Sub vbSend() Dim nResult As Integer Dim strErrorMsg As String * 255 Dim strRequestXML Dim strResponseText .... Regards, Chaitannya

    Visual Basic help php tutorial

  • How to call a function in DLL
    C chaitannya_m

    Hello everyone, I am a php developer, but need to interface a dll with my php project. The code for calling the dll function is given on this site http://www.rtslink.com/visualbasic.html[^] I created a 'Standard exe' in the vb6 'New project' menu. Then i simply copy pasted this code on there. When i run the code i get an error -> 'Constant /fixed length string, array, user defined types and declarations are not allowed as public member of the object modules.' I am not getting a single line of code. Can some one please point out the error and decipher the code for me. Regards, Chaitannya

    COM php html com data-structures

  • how to pass an object to view class.
    C chaitannya_m

    p_ wrote:

    modify the Serialize fun and in listctl command use

    modify the Serialize fun and in listctl command use Well sorry i am a newbie... can you explain this...?

    C / C++ / MFC question c++ com hardware tutorial

  • How to control new windows in MDI application.
    C chaitannya_m

    where is the link..?

    C / C++ / MFC com tutorial question

  • How to control new windows in MDI application.
    C chaitannya_m

    Hello everyone, I have a question about MDI application. As mentioned in the previous question i have this activeX control in the CFormview and i have declared an ActiveX control variable which controls the activex. Whenever i select the File->new option from the menu a new window is created with the activex which is extactly what i require. Now what i have to do is there is a list control. Whenever i select any item from the list control a new window should open as in File->new action. Then i should be able to control the properties of activex in that window. How should i do that. I dont have any idea about MDI applications and documents. A sample code will really be appreciated. Regards Chaitannya.

    C / C++ / MFC com tutorial question

  • how to pass an object to view class.
    C chaitannya_m

    Hello everyone, I have an MFC application with CFormview class. there is an Activex embedded on the form view. I have also declared a variable for the activeX through which i control all the functionalities of the activeX. Now there is another window with a customised list control. So what i am aiming for is, whenever i enter some value in the listcontrol that value should be wrapped in an object and passed to this activeX control. How do i access the pointer of the activex control from the CList class. I have tried declaring a pointer of the object in the view class and then passing that value to the Clist class but that is not working. Can anyone provide any alternative solution?

    C / C++ / MFC question c++ com hardware tutorial

  • Getting an error message
    C chaitannya_m

    yup i did that

    C / C++ / MFC c++ help

  • Getting an error message
    C chaitannya_m

    yup done that... I know it's not a silly mistake.. That's why i have posted it. The header files and all are in place. I have been tracing that half the day.. only then i have posted it

    C / C++ / MFC c++ help

  • Getting an error message
    C chaitannya_m

    Hi everyone, I am getting some strange error message. I have a class CCustomUnitList, which i have used in CMainFrame class. I have declare a pointer in the MainFrm.h as extern CCustomUserList *p_ListUser; and CCustomUserList *p_ListUser; in MainFrm.cpp Also i have defined an attribute of class CCustomUnitList Everything works fine till here I now want to access the pointer from another class CCustomUnitList. So i declared included MainFrm.h in the CustomUnitList.h . Now i am getting an error. d:\source\baker\exp\sizecbar_src\demo2\mainfrm.h(83) : error C2146: syntax error : missing ';' before identifier 'm_ListUnit' d:\source\baker\exp\sizecbar_src\demo2\mainfrm.h(83) : error C2501: 'CCustomUnitList' : missing storage-class or type specifiers d:\source\baker\exp\sizecbar_src\demo2\mainfrm.h(83) : error C2501: 'm_ListUnit' : missing storage-class or type specifiers CustomUserList.cpp Strange thing is i did the same thing with another class CPackageList and things are working just as intended.

    C / C++ / MFC c++ help

  • How to inherit a MFC class.
    C chaitannya_m

    Hey thanks.. Great observation ...!!! the error was there.. There was another class CCustomList which i delete because i completely messed up with.. Code is working fine now

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

  • How to inherit a MFC class.
    C chaitannya_m

    Hi everyone, In my application i am using a hell lot no. of list controls. So i have defined a CCustomListCtrl class derived from CListCtrl class. I have defined the NM and WM functionalities and other stuff in it and it runs just the way i want it. Now i want to define rest of the class derived from CCustomListCtrl. When i do this compiler gives an error unresolved external symbol "public: virtual int __thiscall CCustomList::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CCustomList@@UAEHPAUtagMSG@@@Z) All the errors are related to the WM and NM .I guess the problem is in BEGIN_MESSAGE_MAP(CCustomListCtrl, CListCtrl) macro. How do i remove this error.

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

  • Parameter passsing between classes
    C chaitannya_m

    I am not clear on this thing ... but now it looks like pretty much that it's going out of reference. My OOP fundas are weak... but just one question when i assign a value to a class member A, then i declare an obj of class B so when i try to access the member from a through B does it go out of scope..?

    C / C++ / MFC

  • Parameter passsing between classes
    C chaitannya_m

    Well i solved the problem time being. by declaring extern long iSelPackageItemID in the .h file and long iSelPackageItemID in .cpp file i got help from here http://www.codeguru.com/forum/showthread.php?threadid=427587 But the core OOP funda remains unanswered, i know this is going beyond the scope but just for knowledge sake. I am also working in java and i haven't seen such kind of syntax, also in a desingning book it stated not to use a global variable since it voilates the basic rules of OOP. So is the above code a good programming practise...?

    C / C++ / MFC

  • Parameter passsing between classes
    C chaitannya_m

    No casting since all the variables are long. I checked in the debug mode that the value is retained in the class as along the variable is in scope, but garbage value is assigned once the value goes beyond the scope. I guess i need to increase the scope of variable to application variable.. How do i do it...?

    C / C++ / MFC

  • Parameter passsing between classes
    C chaitannya_m

    Hi guy this is so lame i cant pass parameters between classes, i feel like commiting sucide :o( anyways I have used a public variable in say class A Public: long iSelPackageItemID; and assigned the value in function... setPackageID() { iSelPackageItemID=some value; } then i have declared a function long getPackageID() ( return iSelPackageItemID; ) after a long long time i call the function getPackageID() from some another class say B and i am getting garbage value i.e. getPackageID() is returning garbage. Whatever is the solution i just want the value from iSelPackageItemID in class B which is assigned in class a.

    C / C++ / MFC

  • Some code fixes required
    C chaitannya_m

    Do you want to get text of listctrl or editbox? -> Actually the edit box is in the list control.. so i guess i should have mentioned that earlier. Also i have tried XlistCtrl , it too complicated. Anyone can help me out there

    C / C++ / MFC tutorial

  • How to get a pointer
    C chaitannya_m

    Hi everyone, I am using AfxGetApp()->m_pDocManager->OnFileNew(); to generate a new file. I want to change the properties of activex control embedded in the window that i am creating, so in this case how do i get a pointer to the axtive control variable which i have defined in view class. Or can anyone suggest how to get a pointer to the window that i create through above function.

    C / C++ / MFC com hardware tutorial question

  • Some code fixes required
    C chaitannya_m

    Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.

    C / C++ / MFC tutorial

  • how to use "OnNewDocument" from cview or cmainframe class
    C chaitannya_m

    O' My God that really worked like magic.. But how do i get a pointer to each view. I want to pass data to the view

    C / C++ / MFC com 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