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
L

luhfluh

@luhfluh
About
Posts
23
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • loading a new Form (MS vc++ 2005)
    L luhfluh

    tks, bt i think i'm just in the right frame of mind to grasp where to include it...The namespace GymManager is already defined in Form1's header, and within it there is the

    prasad_som wrote:

    public ref class Form1 : public System::Windows::Forms::Form

    details and so it is for all the other forms. So with what I understand from ur explaination the class within the namespace should be called without problems if only it is within the namespace.

    prasad_som wrote:

    I'm there is similar concept in Java.

    interfaces or abstract classes are there yes, and are similarly defined and used. but I cant get ma head around this. tks anyway.

    C / C++ / MFC

  • loading a new Form (MS vc++ 2005)
    L luhfluh

    tks for ur reply. bt i'm still lost if u know wat i mean, If u can provide a sample code of how to use wat u r talking about it would be very helpful... I dont know where exactly in Form1's definition i would need to put the namespace (besides I'm new to this managed c++ stuff - work better with Java) Tks for ur help once again.

    C / C++ / MFC

  • loading a new Form (MS vc++ 2005)
    L luhfluh

    tks for ur help. bt I tried using something like below (without the GymManager namespace) and it still provded an error that said "undeclared identifier Form1" alternative code tried: ----------------------- Form1 ^login= gcnew Form1(); login->Show();

    C / C++ / MFC

  • loading a new form (windows form application) - vc++ 2005
    L luhfluh

    Hi to all, I'm new to vc++ and I've read a bit on how to create a new form and load it (make it appear on screen). But i have this code and its corresponding error and would be glad if someone could point me in the right direction. There's three forms, Form1 (login form) and gymMain a main interface. So what I tried to do is first load the application with gymMain and make its Visible state FALSE, next load Form1 (login) and upon confirmation of input, close Form1 and make gymMain visible. Now I try this with the below code and the erorr is shown below. All help/suggestions appreaciated. regards PS: I'm prety sure I used the header files appropriately but one never knows, ... -------------------------- code for Main application: -------------------------- // GymManager.cpp : main project file. #include "stdafx.h" #include "Form1.h" #include "gymMain.h" #include "NewMember.h" #include "search.h" using namespace GymManager; //using namespace Form1; //using namespace gymMain; //using namespace NewMember; //using namespace search; [STAThreadAttribute] int main(array ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); // Create the main window and run it Application::Run(gcnew gymMain()); return 0; } ---------------------------------------- code for gymMain: ---------------------------------- #pragma once #include "NewMember.h" #include "Form1.h" using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace System::Globalization; using namespace GymManager; namespace GymManager { /// /// Summary for gymMain /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with localized /// resources associated with this form. /// // //// code for constructor and object declarations and initializations // #pragma endregion private: System::Void btnNewM_Click(System::Object^ sender, System::EventArgs^ e) { // gymMain::Visible = false; // GymManager::NewMember ^newM = gcnew GymManager::NewMember; // newM->Show(); } private: System::Void gymMain_Lo

    Managed C++/CLI

  • loading a new Form (MS vc++ 2005)
    L luhfluh

    Hi to all, I'm new to vc++ and I've read a bit on how to create a new form and load it (make it appear on screen). But i have this code and its corresponding error and would be glad if someone could point me in the right direction. There's three forms, Form1 (login form) and gymMain a main interface. So what I tried to do is first load the application with gymMain and make its Visible state FALSE, next load Form1 (login) and upon confirmation of input, close Form1 and make gymMain visible. Now I try this with the below code and the erorr is shown below. All help/suggestions appreaciated. regards PS: I'm prety sure I used the header files appropriately but one never knows, ...:doh: -------------------------- code for Main application: -------------------------- // GymManager.cpp : main project file. #include "stdafx.h" #include "Form1.h" #include "gymMain.h" #include "NewMember.h" #include "search.h" using namespace GymManager; //using namespace Form1; //using namespace gymMain; //using namespace NewMember; //using namespace search; [STAThreadAttribute] int main(array ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); // Create the main window and run it Application::Run(gcnew gymMain()); return 0; } ---------------------------------------- code for gymMain: ---------------------------------- #pragma once #include "NewMember.h" #include "Form1.h" using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace System::Globalization; using namespace GymManager; namespace GymManager { /// /// Summary for gymMain /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with localized /// resources associated with this form. /// public ref class gymMain : public System::Windows::Forms::Form { public: gymMain(void) { InitializeComponent(); // //TODO: Add the constructor code here // } protected: /// /// Clean u

    C / C++ / MFC

  • Array handling problems:
    L luhfluh

    Hi again...The code is below and i hope it helps clarify my enquiry.I'm new to C++ and all help and suggestions are much appreciated. *******************code for contact list******************** #include #include using namespace std; class BasicAd{ protected: string name; string home_address; public: void BasicAd::setValues(string n, string h){ name = n; home_address = h; }; void BasicAd::getValues(){ cout<<"name : "<>choice; if(choice==1){ cout<<"\nEnter number of items for clubDir: "; cin>>size; for(int i=0; i>name; cout<<"home address: "; cin>>ha; cout<<"member name: "; cin>>mn; cout<<"date joined:"; cin>>dj; cout<<"\n"; club[i].setValues(name, ha, mn, dj); }; cout<<"\nThe Contact Details addded...."; } else if(choice==2){ cout<<"\nEnter number of items for clientDir: "; cin>>size; for(

    Managed C++/CLI help data-structures question

  • Array handling problems:
    L luhfluh

    :confused:Hi, I'd need some help with my commandline application. Its basically a contact list application which allows user to choose to add two types of contacts (club and client). I wrote the classes for these two. So when the choice is made, a function ADD() is invoked which creates this arrays of type club or client. The problem is as these object arrays are created within the ADD() function, they have only a local scope so I tried referencing its values so that in the end, the main() function can have have access to them. But unfortunately the message from the compiler is "referencing an array...." Is it possible to reference an array so that its scope becomes virtualy global? If not, what other ways can a variable object within a function be accessed easily by other functions?

    Managed C++/CLI help data-structures question

  • easy :--making an executable application: VC++7 or VC++.NET
    L luhfluh

    Hi ya'all, I'm sure this might be a very easy and simple thing but I would like to find out how to package my project application so it can run without the developing environment; yes, just want to make it executable. Any pointers will be appreciated. Regards...

    C / C++ / MFC csharp c++ tutorial workspace

  • how to connect to a SQL server: (windows form app--VC++7.NET)
    L luhfluh

    Hi y'all, I hav created a database MyBBN in SQL server (inbuilt in VC++ 7 using server explorer) with a dataset say BBN and i want to use a column (username) within a table in this dataset as a verifier on a log-on form. How can i connect to the database or the dataset for that matter? and how do i check the inputed username from a user against the one in the table.? if sample coding could be provided, it would help a lot. As i mentioned earlier its a managed App in Windows Forms.Net Thanks for all help in advance... regards

    C / C++ / MFC question database csharp c++ sql-server

  • GetLocalTime and GetCurrentTime in Managed App(Windows form.net)---VC7
    L luhfluh

    Hi, regarding an earlier post, suggestions were given as to how to display Locale current time(by using the GetLocalTime n GetCurrentTime). It did work in a single form (managed Application). My problem now is as I tuned the code and used it in my intended managed Application, i have 4 errors and 4 warnings which I understand is as a result of an ambiguity in an ObjectData; the ATLCom.h header and some other header (apparently in the managed App) are conflicting....fine. So how can one go about displaying the date and time in a managed App (windows forms .net App)? Please Help y'all. Regards....

    C / C++ / MFC help csharp winforms tutorial question

  • New Time-Date Prblms--VC7
    L luhfluh

    COleDateTime t = COleDateTime::GetCurrentTime(); CString str = t.Format(_T("%A, %B %d, %Y")); m_edit.SetWindowText(str); Hi, when i first tried the above code on a new empty project, it worked without any problems.(after including the ATLComTime.h) But i finally modify and use it in my intended solution and i have 4 errors and 4 warnings: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(258) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408) : error C2872: 'IDataObject' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : System::Windows::Forms::IDataObject IDataObject' or 'stdafx.cpp(0) : System::Windows::Forms::IDataObject' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7422) : fatal error C1903: unable to recover from previous error(s); stopping compilation Form1.cpp C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(258) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408) : error C2872: 'IDataObject' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : System::Windows::Forms::IDataObject IDataObject' or 'stdafx.cpp(0) : System::Windows::Forms::IDataObject' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7422) : fatal error C1903: unable to recover from previous error(s); stopping compilation Generating Code... Can you figure out what I might nid to do? Tks

    C / C++ / MFC csharp c++ visual-studio help question

  • time and date matters: VC 7(VC++.NET)
    L luhfluh

    Hi, when i first tried the above code on a new empty project, it worked without any problems.(after including the ATLComTime.h) But i finally modify and use it in my intended solution and i have 4 errors and 4 warnings: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(258) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408) : error C2872: 'IDataObject' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : System::Windows::Forms::IDataObject IDataObject' or 'stdafx.cpp(0) : System::Windows::Forms::IDataObject' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7422) : fatal error C1903: unable to recover from previous error(s); stopping compilation Form1.cpp C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(258) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408) : error C2872: 'IDataObject' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : System::Windows::Forms::IDataObject IDataObject' or 'stdafx.cpp(0) : System::Windows::Forms::IDataObject' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7422) : fatal error C1903: unable to recover from previous error(s); stopping compilation Generating Code... Can you figure out what I might nid to do? Tks

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

  • time and date matters: VC 7(VC++.NET)
    L luhfluh

    Thanks y'all, I tried the various ways and i'm glad with the results. Regards...

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

  • time and date matters: VC 7(VC++.NET)
    L luhfluh

    Hi all, I must say how useful I find the help offered here. Although sometimes it takes a while to get a response, the wait nullified by some mouthwatering suggestions. Anyway let me get down to my question. I want to display the time and date (from my system clock or local clock) in a text box inside a Dialog box. Any suggestions? Regards, luhfluh

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

  • Build Error: VS 7
    L luhfluh

    tks for your help....it does work!! Regards...

    C / C++ / MFC help visual-studio

  • Build Error: VS 7
    L luhfluh

    It is ver: 7.1.3088

    C / C++ / MFC help visual-studio

  • Build Error: VS 7
    L luhfluh

    Tks for your suggestion, but the settings is already as you indicated. Is there any other solution you think might help.?

    C / C++ / MFC help visual-studio

  • Build Error: VS 7
    L luhfluh

    Hi all, I have 2 build errors with no solution to and was wondering if any of ou could help me with. The first is ----MM error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup The second ----MM fatal error LNK1120: 1 unresolved externals All suggestions welcomed. Thanks

    C / C++ / MFC help visual-studio

  • linking a dataset to an Access file: VC++ .NET
    L luhfluh

    I hav a dataset object which i would like to link to an access file upon verification of input from user. Can someone Please help me on this. TKS in advance...

    C / C++ / MFC csharp c++ help

  • loading and destroying upon data verification: VC++.net
    L luhfluh

    Hello all, I have a LogIn Form which should close and destroy itself upon verification of password and username. How can I link the text inputed to be verified from an Access file?. Also,I want the logIn form to be closed and load a diferent Form (Not CDialog form). Any help is highly appreciated. Tks --------------------------------------------------------- new to Visual C++, bt we gonna make it catch-a-fi-er

    C / C++ / MFC c++ question csharp help
  • Login

  • Don't have an account? Register

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