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
V

viral_umang hotmail com

@viral_umang hotmail com
About
Posts
29
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • using mscomm32.ocx in ATL Exe?
    V viral_umang hotmail com

    Hi all! I want to write an ATL exe that uses the mscomm32.ocx activex for serial communication. How to do this? specially how to call the methods of this ocx as we can do it with mfc exe by declaring a member variable of the class CMSComm. Thanks in advance. Viral Joshi.

    ATL / WTL / STL c++ com tutorial question

  • Problem: GetRecordInfoFromGuids
    V viral_umang hotmail com

    done. It was my fault in the API GetRecordInfoFromGuids parameter Student_IID should assign the value of uuid of student structure instread of that i was assigning it the value of uuid of StudentLib. Viral Joshi.

    COM help com sysadmin json

  • Problem: GetRecordInfoFromGuids
    V viral_umang hotmail com

    Hi all! I'am creating COM Server for structure Student i am having problem in the following code. IRecordInfo *pUdtRecordInfo = NULL; HRESULT hr = ::GetRecordInfoFromGuids( LIBID_STUDENTLib, 1, 0, 0, Student_IID,/*defined as const IID having same value as LIBID_STUDENTLib*/ &pUdtRecordInfo ); if( FAILED( hr ) ) { HRESULT hr2 = Error( _T("Can not create RecordInfo interface for UDTVariable") ); //return( hr2 ); return( hr ); } the problem is that GetRecordInfoFromGuids return Error what could be the source of problem for the failure of this API. thanks in advance. Viral Joshi.

    COM help com sysadmin json

  • Invalid Procedure call or argument in VB Client ?
    V viral_umang hotmail com

    Thanks for the kind co-operation. I've also found the same error. Now the code is working fine. Once again thanks for your efforts. Viral Joshi

    COM question com sysadmin data-structures help

  • Invalid Procedure call or argument in VB Client ?
    V viral_umang hotmail com

    Hi all! I am writing COM Server.I am using User defined data type a Student structure in COM Server. There is a method in COM Server that returns the 1 st ranked student out of the student array passed to it from vb client. The Interface method is like this. STDMETHODIMP CStudentUtil::GetFirstRankStudent(SAFEARRAY **StudentArray,Student *pStudent) { if(!StudentArray) return(E_POINTER); if(!pStudent) return(E_INVALIDARG); long lBound=-1; long UBound=-1; Student *ob1=NULL,*ob2=NULL,*max=NULL; HRESULT hr; hr=::SafeArrayGetUBound(*StudentArray,1,&UBound); hr=::SafeArrayGetLBound(*StudentArray,1,&lBound); hr=::SafeArrayGetElement(*StudentArray,&lBound,(void*)ob1); max=ob1; if(FAILED(hr)) return hr; for(long i=lBound+1;iTotal>ob1->Total)/*Total is the member of my Student structure*/ max=ob2; } } pStudent=max; return S_OK; } The client side is Dim d As STUDENTLib.Student Set ob = New STUDENTLib.StudentUtil d = ob.GetFirstRankStudent(a) Set ob = Nothing What is wrong with the code in the client side that result in Invalid Procedure call or argument. Pls help on this. Thanks in advance. Viral Joshi.

    COM question com sysadmin data-structures help

  • Generic function in COM Server?
    V viral_umang hotmail com

    Hi! Thanks for the reply. But i am not clear with the solution any related material or example will help me better. Thanks, Viral Joshi.

    COM c++ com sysadmin tutorial question

  • Generic function in COM Server?
    V viral_umang hotmail com

    Hi all! I want to know how to write a method of interface like SORT that is able to sort any kind of data(float,long,string) passes to it from VB,VC++ client. Thanks in Advance. Viral Joshi.

    COM c++ com sysadmin tutorial question

  • Passing user defined class object's to method of Interface?
    V viral_umang hotmail com

    Hi! Prasad_som thanks very much for the support. I'll see the details of this article and will definately revert back to you. And it is sure that i am going to take your help whenever there are problems in the road of COM & ActiveX In ATL. Once again very much thanks for the cooperation. Viral Joshi

    COM com sysadmin business tutorial question

  • Passing user defined class object's to method of Interface?
    V viral_umang hotmail com

    Hi all! I want to pass the object(say studentobj having members:id,name,sub1mark,sub2mark)from VB client to the method of interface. requirements: 1) I want that the passed object's should be stored in COM servers student class (a class added in the com server) other than the interface class. 2) COM Server is having a method in interface that returns the student object that has got the 1st rank among the other student. All I want to know is only how to pass and return objects to and from COM Servers. Thanks in Advance. Viral Joshi.

    COM com sysadmin business tutorial question

  • How do i pass an array of long to the method of COM?
    V viral_umang hotmail com

    Hi all! I want to know how to pass an array of long to the method of COM and how to return the array of long from that method. Viral Joshi.

    ATL / WTL / STL question com data-structures tutorial

  • Beginner In COM where to start first?
    V viral_umang hotmail com

    Hi all, I want to learn how to write COM component in VC++ 6.0 Anybody please send the links to the material from where a beginner can start reading the concept and the related examples. I also want to know the books available on this subject with Title and author's name. Thanks in Advance to all. Viral Joshi

    COM c++ com tutorial question learning

  • How to Develope an Activex using existing controls
    V viral_umang hotmail com

    Thanks for your reply but let me know how is it possible in Activex. But if i derived a class from CEdit then is it the ActiveX? And how can i use it as a control like textbox in other applications? Viral Joshi

    C / C++ / MFC com business tutorial question

  • How can i assign character array to cstring object
    V viral_umang hotmail com

    #include char str[30]; std::string temp; CString val; strcpy(str,"Hello"); temp=str; val.Empty(); val=temp.c_str(); Viral Joshi.

    C / C++ / MFC question data-structures

  • How to Develope an Activex using existing controls
    V viral_umang hotmail com

    Hi all! I want to develope an ActiveX TextBox control with additional features that doesn't exist in the current textbox component. Requirements 1) I want to use existing textbox control and enhance it to my requirements. 2) Is there any way using which we don't have to draw the control manually as it is in the case of VisualBasic? If anybody is having anykind of reading stuff give me the links. Viral Joshi.

    C / C++ / MFC com business tutorial question

  • how to start command prompt from application
    V viral_umang hotmail com

    Thanks very much, The code is working fine. I am new to VC++ and supporter like you and codeproject makes me better with every valuable inputs to me. I really appreciate your valuable time you share for improving this community. Viral Joshi.

    C / C++ / MFC tutorial question

  • how to start command prompt from application
    V viral_umang hotmail com

    Thanks for the rely i ve tried it with following changed but it doesn't work ::ShellExecute(NULL, "C:\\Program Files\\Microsoft Office\\Office10\\WINWORD.exe ", "C:\\BillPrint\\6.doc", NULL, NULL, SW_SHOWNORMAL); Viral Joshi.

    C / C++ / MFC tutorial question

  • start an application out side the current application
    V viral_umang hotmail com

    I want to start an independent application with parameters from my current application. requirements: 1) Independent appllication should not have relationship with the current application in the form of starting of application. 2) Application shuold function as it is started by the local user. 3) Many applications requires parameters to run i should able to set that parameters. 4) My application is the table of other applications from where at given time current application will automatically starts independently with set parameters. Viral Joshi

    C / C++ / MFC business

  • how to start command prompt from application
    V viral_umang hotmail com

    hi! How can i start command prompt from the VC application and how can i give some commands to it. Viral Joshi.

    C / C++ / MFC tutorial question

  • hard disk serial number in vista
    V viral_umang hotmail com

    hi thanks for the reply my code is working fine upto winxp. but i am not able to get same info in vista. it return blank. i am able find out wich os is runing and base on i can call that function. that is ok. just i want what are the change in vista to get hdd serial number. if i include wmi with my app. deploment set get big as it include complet wmi and i want only one info i.e. hdd serial no. so it would be not good just to include whole stuff in my deploment setup. this is same case with dotnet framework. that is why i want to write this code i my app. thank you

    C / C++ / MFC csharp c++ json

  • hard disk serial number in vista
    V viral_umang hotmail com

    i am not able to get hard disk serial number in vista. i want code that can be used in vc++ 6.0 and should be able to run in vista. i don't want to use wmi or .net framwork and without administrator login as my software can run form win95,98,me to vista. my software is not useing any api of .net. viral joshi

    C / C++ / MFC csharp c++ json
  • Login

  • Don't have an account? Register

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