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
R

Rahim Rattani

@Rahim Rattani
About
Posts
39
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • design pattern
    R Rahim Rattani

    Composite Pattern - For the structure, components and movement of the elevator (e.g. doors, switches, lightsource etc.). Iterator Pattern - For the list of floors. Observer Pattern - To identify on which floor to stop. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC design algorithms regex architecture tutorial

  • How to wrap virtual functions?
    R Rahim Rattani

    I think u dint got my question right. I have updated the question with further explanation if u could plz have a look. Rahim Rattani Karachi - Pakistan

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

  • How to wrap virtual functions?
    R Rahim Rattani

    Consider a library (unmanaged) exports a class. the class is as follows. class A { public: virtual void funcA() { //do something } void DoProcessing() { // Do stuff funcA(); // Do Stuff } } Now in native, If i have to override funcA it would be as class DA : public A { public: virtual void funcA() { // related processing here. } } Now if i create an object of DA, and call DoProcessing() , funcA() in DA would be called. Now if I write a managed wrapper over class A as class _gc MngdA { private: A __nogc* m_pA; public: void DoProcessing() { m_pA->DoProcessing(); } } No if I inherit from MngdA, i dont have any path to override the virtual functions. This means DoProcessing() will always call the funcA() in class A. I need a mechanism, so that this virtual function call from the native could could be riuted out into managed code and be able to override it from clr languages.

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

  • Crystal Reports API Problem
    R Rahim Rattani

    I am working on an applicaiton that needs to support different databases. I created the reports using SQL Server as the database, and for others i am setting the databse information and table locations from the code. Now in some of the reports i have got subreports, having parameters mapping to the fields in the main report. Since the parameter is defined with an '@Parameter' in sql server and ad 'Parameter (no @)' in oracle for stored procedures I had to change the name of the parameters from code too. This is working ok. Now the problem is that I had to modify the links accroding to the new parameter field names. but the problem is that i am unable to retrieve the mapping field names of the subreport. There is a call available as ISubreportLinkPtr->MainReportField->GetName ISubreportLinkPtr->SubreportField->GetName The main report one return the correct name of the field in the main report but the subreport one always returns the first database field instead of the actual mapping field. Anyone got any idea please reply quick. Thanx. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC database sql-server oracle sysadmin json

  • Hey Guys Its me Psycho the Newbie again *DOH*
    R Rahim Rattani

    You seem to have declared the function sumarray(...) but forgot to implement it. Rahim Rattani

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

  • How to access the variables of View Class
    R Rahim Rattani

    Use CMyView* myView = (CMyView*)AfxGetMainWnd()->GetActiveView(); to get a pointer to the view. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC question help tutorial

  • Problem with Property page
    R Rahim Rattani

    Add OnOK and OnCancel Handlers in the dialogs (propertypages) to call the OnOK and OnCancel of their parent ( i.e. the PropertySheet ). Rahim Rattani

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

  • how do I redirect STDIN STDOUT for cmd.exe?
    R Rahim Rattani

    I think you want to read in the standard cosole. If I am correct, then u can do this by simply open a socket at port no. 512. anything u write would be sent to standard console for output and anything that is typed at the console would be available for u to read on the socket. 512 is a port that open to the standard console. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC question linux help

  • My C++ MFC-app into a dll -> to be used in .NET app…
    R Rahim Rattani

    Try writing a managed wrapper. The following article tells how to write a managed wrapper for zlib library. See if this can help you. http://www.codeproject.com/managedcpp/mcppzlibwrapper.asp[^] Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC csharp c++ com question help

  • question regarding operator overloading!
    R Rahim Rattani

    Yes, new and delete operators can be overloaded. Use the following signatures. 1.) new :- void* operator new( size_t p_stBlock ); 2.) delete :- void operator delete( void* p ); Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC question

  • writing windows service
    R Rahim Rattani

    I am using PJ Naughter's CNTService for the purpose. The example service provided by him works fine. But when I try to use his frmaework for my own service application, the service creation works fine but start service always fails with the error 997: overlapped IO operation in progress. Any help plz. Rahim Rattani

    C / C++ / MFC help tutorial

  • Can't compile function template on VC7.1
    R Rahim Rattani

    try using as template<typename T> inline const T& getMax ( const T& a, const T& b) { return a < b ? b : a ; } The problem is with the name of the function. I have renamed it from "max" to "getMax" because macros with the name "min" and "max" already exist in stdlib.h, and same name of the function as those macros caused the errors. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC help question

  • How to do this????
    R Rahim Rattani

    As smple as u set the integer values. void Function( int x , CString string = "" ); Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC question tutorial

  • hlp me in dis code!!
    R Rahim Rattani

    The problem in your code is that u are writing the file after the do while loop, and therefore if u write the file after the do-while construct it would write the last values. Write the values to the file in the do-while loop. After every time you obtain the values from the user write it to the file and then ask for the y/n thing. I mean just before this cout<

    C / C++ / MFC

  • Plz chck this code!!
    R Rahim Rattani

    Yes it does creates the file, if the file does not exist. The actual syntax is file.open(filename, open flags, protection specifications). The default open flag is ios::out which creates the file if it does not exists. To avoid the file creation if it does not exists another flag ios::nocreate is used. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC

  • CDialog::EndDialog crashes application
    R Rahim Rattani

    No problem with the code. Please paste the stack trace and ProgressDialog class. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC help c++

  • Plz chck this code!!
    R Rahim Rattani

    i dont see any problem in your code. It must be working fine and must crate the file. Check the file 1) if you are directly running the .exe, at the location of the exe file. 2) if you are executing from the vc projecy, then the file will be created at the location of workspace and project files i.e. where .dsw/.dsp exists. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC

  • Convert Words to Numbers
    R Rahim Rattani

    Plz do your homework yourself. Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC c++ com help tutorial

  • Size of an executable
    R Rahim Rattani

    2GB executable file. You must be kidding ... Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC question

  • Please help me!
    R Rahim Rattani

    Heres your solution CClass* cls; if (i==0) cls = new CClass[j]; else cls = new CClass[b]; Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

    C / C++ / MFC data-structures help 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