|
Try this (but this have a two lines
<br />
for (i = 0; i < LANComputers.count; ++i)<br />
ShutDown(LANComputers);<br />
maybe take action!
-----------------------------------------------------------------
Surely without war there would be no loss
Hence no mourning, no grief, no pain, no misery
No sleepless nights missing the dead... Oh, no more
No more war
[Sleepless - Cradle of Filth]
|
|
|
|
|
Hi all!
ich searching for a tftp library which i can used e.g.
to write an application which can upload and download
cisco configuration files.
I searched with google but i got no usable result.
Thx for help.
Best Regards
madcat
|
|
|
|
|
Not a stand-alone library but I'm guessing you can extract the source which you want from here.
Ed
|
|
|
|
|
|
I recieve these Linker errors when i try to compile a Program that utilizes a Mixed DLL.
Universe error LNK2020: unresolved token (0600001A) CApplicationForm::.ctor
Universe error LNK2020: unresolved token (0600001B) CApplicationForm::GetCaption
Universe error LNK2020: unresolved token (0600001C) CApplicationForm::GetCaption
Universe error LNK2020: unresolved token (0600001D) CApplicationForm::GetHeight
Universe error LNK2020: unresolved token (0600001E) CApplicationForm::GetWidth
Universe error LNK2020: unresolved token (0600001F) CApplicationForm::Dispose
Universe error LNK2020: unresolved token (06000020) CApplicationForm::InitializeComponent
Universe error LNK2020: unresolved token (06000021) CApplicationForm::SetCaption
Universe error LNK2020: unresolved token (06000022) CApplicationForm::SetCaption
Universe error LNK2020: unresolved token (06000023) CApplicationForm::SetHeight
Universe error LNK2020: unresolved token (06000024) CApplicationForm::SetWidth
Here is the code Listing for the DLL header File Application.h which contains the Class Definitions. The Source is compiled into the DLL (CommonDLL.Dll) which is linked to the program.
Application.h
//******************************************************************************
//FILE: Application.h
//DATE: 06 Mar 03
//MODIFIED: 13 Apr 06
//******************************************************************************
//******************************************************************************
// HISTORY:
//
// COMMENT: Make sure to Include CommonDLL.lib to Input libraries
//******************************************************************************
//******************************************************************************
#ifndef _APPLICATION_H_
#define _APPLICATION_H_
#pragma once
//******************************************************************************
// INCLUDE FILES
//******************************************************************************
//References
#using <mscorlib.dll>
#using <system.dll>
#using <system.drawing.dll>
#using <system.windows.forms.dll>
#include "Windows.h"
#include "Menu.h"
#include "PlugInManager.h"
#include <vcclr.h>
#include <stdlib.h>
//******************************************************************************
//******************************************************************************
// DEFINES
//******************************************************************************
using namespace System;
using namespace System::Drawing;
using namespace System::Windows::Forms;
#ifdef DLLMAKE
#include "DLLMain.h"
#define DECLAREDLL DLLEXPORT
#else
#ifdef DLLUSE
#include "DLLMain.h"
#define DECLAREDLL DLLIMPORT
#else
#define DECLAREDLL
#endif
#endif
//******************************************************************************
//******************************************************************************
// CLASS CApplicationForm
//******************************************************************************
//
//******************************************************************************
__gc class CApplicationForm : public Form
{
private:
System::ComponentModel::Container *components;
protected:
int m_Height;
int m_Width;
String *m_Title;
public:
CApplicationForm();
// ~CApplicationForm();
//Methods
char *GetCaption(char *Buffer);
int GetHeight();
int GetWidth();
String *GetCaption();
void Dispose(Boolean disposing);
void InitializeComponent();
void SetCaption(char *title);
void SetCaption(String *title);
void SetHeight(int height);
void SetWidth(int width);
// static int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow);
};
//******************************************************************************
//******************************************************************************
// CLASS CApplication
//******************************************************************************
//
//******************************************************************************
class DECLAREDLL CApplication
{
protected:
gcroot<capplicationform *=""> m_Window;
...
CMenu m_Menu;
CPlugInManager *m_PlugInManager; // The manager for all plugins.
HINSTANCE m_hInst; // Instance of the Application
HMENU m_MainMenu; // Main Menu
HWND m_hDlg; // Any Dialog Box Display.
HWND m_hWnd; // The main app window
HWND m_hWndFocus; // The D3D focus window (usually same as m_hWnd)
MSG m_Message; // The Window's Message
public:
CApplication(void);
~CApplication(void);
bool GetMouseButton(unsigned long Button);
DWORD GetHeight();
DWORD GetWidth();
...
void SetDlghWnd(HWND hDlg);
//Methods
void SetCaption(char *str);
};
DECLAREDLL CApplication *GetApplication();
#endif
//******************************************************************************
//******************************************************************************
// END OF FILE
//******************************************************************************
Here is the Header Listing for the Program.
Universe.h
//******************************************************************************
//FILE: Universe.h
//DATE: 13 Sep 05
//MODIFIED: 20 Dec 05
//******************************************************************************
#ifndef _UNIVERSE_H_
#define _UNIVERSE_H_
#pragma once
//******************************************************************************
// HISTORY:
//
// COMMENT: Make sure to Include CommonDLL.lib to Input libraries
// Desc: Header file Universe.h
//******************************************************************************
//******************************************************************************
//******************************************************************************
// INCLUDE FILES
//******************************************************************************
#include "\Projects\CommonDll\Application.h"
#include "\Projects\CommonDll\INIFile.h"
#include "\Projects\EngineLib\Graphics.h"
#include "\Projects\EngineLib\Input.h"
#include "\Projects\CommonDll\TimingClock.h"
#using <commondll.dll>
//*****************************************************************************
//*****************************************************************************
// DEFINITIONS
//*****************************************************************************
// TODO: change "DirectX AppWizard Apps" to your name or the company name
#define DXAPP_KEY TEXT("Software\\DirectX AppWizard Apps\\Universe")
//*****************************************************************************
//*****************************************************************************
//
//*****************************************************************************
class CUniverse : public CApplication
{
protected:
CINIFile m_INIFile; //Place to Load and Save Settings;
...
CTimingClock m_Clock; //The Application Timing Clock
float m_Time; //The App Time.
float m_FramesPerSec; //The number of Frames Per Second
int m_Frames; //The Frame Number
STime m_WorldTime; //The Length of Time the World has been running.
public:
virtual HRESULT InitApp();
...
void RemovePlugInDlg();
};
#endif
//*****************************************************************************
// END OF FILE
//*****************************************************************************
Does anyone know what I am doing wrong to create these errors? Please let me know any Ideas on how to link both the Native side and the Managed Side of the DLL to the application. In the configuration for the project I'm linking with CommonDll.lib and for the managed side I have included #Using <commondll.dll>. The class is defined in the default namespace.
I appreciate any help.
Thanks in advance,
DWyvern.
-- modified at 15:32 Monday 17th April, 2006
|
|
|
|
|
Project Description
Write a client/server application implementing a shared directory at the server. The server keeps
a directory of files (a folder) where the users can upload or download files. When the user connects
to the server, he/she selects either to download a file or to upload one. If the user wants to
download a file, the server will show a list of the files found in the shared directory, and the user will
select one of them and download it. If the user selects to upload a file, the user will select the file
and send it to the server, the server will store the file in the shared directory and make it available to
the later download requests. using c#
J.U.S.T
-- modified at 5:15 Monday 17th April, 2006
|
|
|
|
|
First of all, this is the (Managed) C++/CLI forum. You should direct your question to the C# forum. Secondly, you need to ask for help with a more specific question rather than just stating your project goals. We are here to help you to program and not to be a free source of computer development.
Peace
-- modified at 8:58 Monday 17th April, 2006
|
|
|
|
|
I will bid for this project.
$1000 per month
ETA - 6 months.
-Prakash
|
|
|
|
|
I think you are being a bit conservative with your pricing!
|
|
|
|
|
I can finish this project in 5 months and 29 days
-----------------------------------------------------------------
Surely without war there would be no loss
Hence no mourning, no grief, no pain, no misery
No sleepless nights missing the dead... Oh, no more
No more war
[Sleepless - Cradle of Filth]
|
|
|
|
|
Drucik_ wrote: I can finish this project in 5 months and 29 days
Sure you can take it, I have kinda lost interest in the project
-Prakash
|
|
|
|
|
Hello World,
I am using borland C++ 5.02 for my C++ course. After successfull compiling my "hello world" program, the source code fails to run.
I mean MS DOS flashes briefly on the screen, but then it closes itself. It's doing my head in.
I would be very happy if anyone can tell me what i am doing wrong?
Thanks
Zantabri
|
|
|
|
|
The command window flashes briefly because your program runs too fast for you to see it. Open a command prompt first, change to your directory, then run your program.
1) Start -> Run -> type: cmd
2) You should now see a console window.
3) cd c:\directory1\directory\containing\your\program
4) hello.exe
|
|
|
|
|
Cheers
The program runs well from the console, But there is a catch. When i make changes to the code in the borland ide, i have to first compile and then run it in borland before i can see the changes made when i run it from the dos console.
I think it's probably got to do with my Borland IDE settings, but i have no idea where to look. I am not even sure if thats how it should b run
Can anyone give me an idea of where to look or something.
Zantabri
|
|
|
|
|
Probably you need to put some code in borland c at the end of your program somethink like
while(!kbhit()) or getch(), that waits for a user keyboard input.
-Prakash
|
|
|
|
|
Thanks
I'm doing that at the moment, it's just a little inconvenient, as i have to consider the while loop when creating programs that solve other kinds of problems.
|
|
|
|
|
Now i c what u mean by the getchar() method . It works better than a while control statement.
Thanks
Zantabri
|
|
|
|
|
Can somebody send me the steps for the cab deployment of window application in vc++.net 2003
Thank You
Pankaj
|
|
|
|
|
Quick question: I'm working on a managed plugin to an open source unmanaged application. To achieve this I have an MC++ bridging dll plugged into the unmanaged host, which itself hosts a C# dll which does the real work:
Host App ---> MC++ Bridging Dll (a thin interface) ---> C# Dll (does the real work)
When the host app calls a Run function, my plugin bursts into life. I instantiate a whole bunch of managed objects exposed by the C# dll into an unmanaged structure by using the gcroot template; so as to be able to "store" managed objects inside that unmanged data structure jointly owned by the host app and the MC++ bridge. It works pretty well.
But here's the catch; to add more functionality to my plugin, my bridging dll will need to handle a few callbacks from the host app. My original plan was that'd I'd write a callback procedure which simply forwards the event into the C# dll through the use of a delegate. The catch is that to do any delegate invoking, I need to access my managed objects (which are the interfaces) in their gcroot s - however the .net framework seems to balk at this, complaining that thread of the callback is in another AppDomain.
I presume the solution to this problem is to somehow get a thread that is in the correct app domain to handle the event. However, the only ways to do this, that I can think of involve yucky polling, or OS thread synchronisation Events.
Can anyone suggest a really elegent way around this little problem of mine?
Joel Holdsworth
Want to give me a job this summer?
Take a look at my online CV
|
|
|
|
|
1)system("cls");
who can tell me ?thk, pls write it simple !!!
2) char ch1='*', ch2=' ';
what is the ch2=' '; mean ?
|
|
|
|
|
|
This is a pure guess, but "cls" sounds like the old dos (aka console) "clear screen" command.
Indeed, I have just tried it and it still clears the screen.
system("command name");
also sounds like some invocation of a command.
Hope it helps
|
|
|
|
|
|
how can i make program that will login in hotmail acount and take all email address in this email
--------------------
in othere words i have web site that have username as email and password
i want to program to test login to this account and all email address in this account
to send advertisment to this email
how can i do that ??
Palestine
|
|
|
|
|
trying to hack someone's hotmail account ?!
|
|
|
|