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

rabih_kai

@rabih_kai
About
Posts
14
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Need some help - Storing Image and text data in access DB
    R rabih_kai

    hey, I am C# developper, but i think my code might be useful since we are both using .NET framework. do the following. Check if file exist first by using the File class.if exists then do this byte[] Imagespace = File.ReadAllBytes(strPath); strpath is the full path of the photo. you can then send to stored procedure or do whatever you want once you have the photo in Imagespace variable. I wish my code would be useful.

    I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

    Visual Basic database csharp help tutorial

  • MDI form
    R rabih_kai

    Dear, Try to structure your code by doing the following: -In form3 add the following Function: public void Create(Form ParentWnd) { MdiParent = ParentWnd; Show(); } - Now from Form2 do the follwing from a function of course: Form3 form3 = new Form3(); Form ParentForm = this.MdiParent; form3.Create(ParentForm); I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

    C# question

  • How insert controlls inide a listbox
    R rabih_kai

    You can find what you want if you simply go to C# section and check for Grid Controls, inserting a control into a grid is the same as a listbox you simply have to change the control's class only,i could have given you an example but all my code is based on libraries code I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

    C# question

  • could anybody please explain to me how come this happen?
    R rabih_kai

    Dear, you can visit microsft.msdn.com, that is full of help, or simply use MSDN help that comes with Visual studio 6.0 ,2003 or 2005, just search for the error number and the whole help will be yours serving your needs, I was using C++ for 7 years, trust me go for C# and never for J#. C# is easier, has the same libraries and more rich GUI wise. I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

    C / C++ / MFC help question

  • could anybody please explain to me how come this happen?
    R rabih_kai

    I've got you these from MSDN i think you will understand why? let me know in case not SYMPTOMS When a user-defined class contains a CArray and the same user-defined class is nested in another class, you may get the following errors if no copy constructor and assignment operator are provided for the class: main.cpp(52): error C2664: 'Add' : cannot convert parameter 1 from 'class B' to 'class B' No copy constructor available for class 'B' After adding a copy constructor, you get the following error message: afxtempl.h(443): error C2582:'B' : 'operator =' function is unavailable afxtempl.h(1566):while compiling class-template member function 'void __thiscall CArray::SetAtGrow(int,class B)' CAUSE If the class that contains a CArray is nested in another class, then its objects must be copied. The compiler does not construct an implicit copy constructor and copy assignment operator because the class in question has CArray as a member, which does not have a copy constructor and copy assignment operator, and CArray inherits from CObject, which has a protected copy construtor and a copy assignment operator. The compiler tries to generate the implicit ones, but that generates a call to CObject's version of them. Because they are protected, the above errors are generated. RESOLUTION You need to provide a copy constructor and an assignment operator for the class. STATUS Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was corrected in Microsoft Visual C++ .NET. MORE INFORMATION The following example shows the correct use of the CArray class: // No compiler option needed. #include struct A { int i; int j; }; class B { public: B(); ~B(); // Need to define copy ctor and assignment operator. B(const B& b){ // Your copy ctor body goes here. } /* const B& */ void operator= (const B& b) { // Your assignment operator body goes here. } protected: CArray arrayA; }; B::B(){} B::~B(){} class C { public: C(); ~C(); void addElement(); protected: CArray arrayB; }; C::C(){} C::~C(){} void C::addElement() { B temp; arrayB.Add(temp); } void main() { } I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure

    C / C++ / MFC help question

  • Experience with a Muslim
    R rabih_kai

    Well guys, Since I am a modern Catholic, Allow me please to share my own experience. Since I come from Lebanon where all cities are merged of Christians and muslims. We had our own bad civil war between the 2 religions, and finally after 25 years the young and educated people came up with a concept that each party can live with the other one but cannot live without. The country is for All , Religion is to God. All those people spreading bad facts and words about muslims are evils simply looking for war and destroying humanity. Finally we both believe in the same God for Certain limits. And their holy book spoke about the Lord Jesus 25 times. Well does that make a sense? I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

    The Lounge com tutorial question

  • Experience with a Muslim
    R rabih_kai

    Well guys, Since I am a modern Catholic, Allow me please to share my own experience. Since I come from Lebanon where all cities are merged of Christians and muslims. We had our own bad civil war between the 2 religions, and finally after 25 years the young and educated people came up with a concept that each party can live with the other one but cannot live without. The country is for All , Religion is to God. All those people spreading bad facts and words about muslims are evils simply looking for war and destroying humanity. Finally we both believe in the same God for Certain limits. And their holy book spoke about the Lord Jesus 25 times. Well does that make a sense? I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

    The Lounge com tutorial question

  • abt Alt+keys
    R rabih_kai

    Dear u have done it, but you can't call WM_KEYDOWN ||WM_SYSKEYDOWN from inside a command, i do believe that you have to overload it as a seperate function inside that dialog, try it and it will work... Enjoy. Rabih

    C / C++ / MFC c++ question announcement

  • sql server import /export access in vc++ code
    R rabih_kai

    in CDatabase class there is one ExecuteSQL(CString) command... In CString u can say "Insert into targetTable (F1,F2,etc..) Select Master.F1,Master.F2 from Master" soooooooo simple... My Name is Rabih and I am lebanese with CCE grade and 4 years of C++,MFC,GDI+ etc... experience

    C / C++ / MFC database help c++ sql-server sysadmin

  • sql server import /export access in vc++ code
    R rabih_kai

    yes sure, it is obvious that operator = is not overloaded in CRecordSet, all what u have to do now, is to create one function where you assign the master recordset values to the receiver recordset for example your master table A has CustomerRef ,customerName etc... all what u have to do is ReceiverRecordSet.CustomerRef = MasterRecordset.CustomerRef make sure you are assigning the right fields... Voila... do not forget while (!masterRecordSet.ISEOF()) etc...

    C / C++ / MFC database help c++ sql-server sysadmin

  • problem in linking tow relative classes
    R rabih_kai

    u cannot do this even if it compiles, object are wrong, just create a parent object class for both and inherite a & b classes from it then u publish an Object variable in both classes and on runtime u cast it to whatever u want...

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

  • sql server import /export access in vc++ code
    R rabih_kai

    u do not need any user assistance while u r copying data from table to another, just create two databases variables and open both ODBCs then connect to both sender record set and receiver record set, start copying from sender to receiver, easy.... u can use your own overloaded RecordSet classes or simply and more than enough MFC RecordSet class...

    C / C++ / MFC database help c++ sql-server sysadmin

  • Changing the look and feel of button
    R rabih_kai

    OnMouseHover event will simply solve what u r looking for either with Image or test, just drop some code there and u will see the difference

    C / C++ / MFC graphics help question

  • Problem whit crystal report
    R rabih_kai

    You have many ways to solve this issue by Crystal.engine library using the setlogininfo, or the simplest way: reset sa database password to blank and then screen will never pops up, enjoy it....

    .NET (Core and Framework) help csharp database sysadmin 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