• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - TheNewOne

#1
Very histarical, inwhich I thought you guys being such programmers could simply put 1+1 together to realize I was not infact compiling with Dev C++, but inwhich I was using the ide's compile menu item, which could infact use any compiler it wanted. The fact remains on the error I am getting when this event occurs. And that is the error line im returned.

Also to include to this here is the exact error returned not jsut the error line.


30 C:\Dev-Cpp\Makefile.win [Build Error] *** multiple target patterns.  Stop.
#2
Alright im currently using the latest version of dev c++ and while compiling bncsutil I come up with and error on this line of my make file.


$(BIN): $(LINKOBJ) <~ Error Occures Here
$(DLLWRAP) --output-def $(DEFFILE) --driver-name c++ --implib $(STATICLIB) $(LINKOBJ) $(LIBS) -o $(BIN)


Any Help Is Much Appreciated.
#3
C/C++ Programming / Re: [C++] BNCSUtil Problem
January 02, 2006, 12:14 AM
Ok i did a bit of research on this, finding nothing of course. I cant figure how to turn the dll into a .lib if i need to or not. I notice no .lib file included with the source itself. I was wondering if any insight on this would be available.
#4
C/C++ Programming / Re: [C++] BNCSUtil Problem
January 01, 2006, 07:38 PM
Hmm how do i make BNCSUtil.lib for Visual Studio 6's Lib Folder?
I continue to get the error...

LINK : fatal error LNK1104: cannot open file "bncsutil.lib"
#5
C/C++ Programming / Re: [C++] BNCSUtil Problem
December 28, 2005, 10:18 PM
Ok I added bncsutil.lib to the linking setup, ive included all header files to bncsutil. And i still continue to get the error. Of not beign able to locate <bncsutil/multi.h> etc..

#6
C/C++ Programming / [C++] BNCSUtil Problem
December 28, 2005, 01:00 PM
Alright I have been having some problems with BNCUtil, me never using .dll's before and all. And I was wondering how I should attack this. Ive read threw posts with no prevail on this site. Ive tried including bncsutil.h in my project, with only errors of missing includes to be found. Any help on how this is done will be appreciated in full. Thanks.

The New One.
#7
C/C++ Programming / Stupid Question Bothering me
September 06, 2005, 08:50 PM
Ok on other compilers I have no problem with this but im getting a linked error and im looking for some insight.


Linking...
Project1.obj : error LNK2001: unresolved external symbol _connect@12
project1.obj : error LNK2001: unresolved external symbol _htons@4
project1.obj : error LNK2001: unresolved external symbol _gethostbyname@4
project1.obj : error LNK2001: unresolved external symbol _socket@12
project1.obj : error LNK2001: unresolved external symbol _WSAStartup@8
project1.obj : error LNK2001: unresolved external symbol _closesocket@4
project1.obj : error LNK2001: unresolved external symbol _send@16
Debug/project1.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

My Code is at work this is all i can provide sorry for the inconvience.

p.s. IT seems to give me the same error if i include winsock2.h or not so thats what confuses me.
#8
C/C++ Programming / Re: Type Indentification C++
August 23, 2005, 01:25 PM
the control itself is defined as a const char, when numbers only are present it stores the type in a temp buffer as int or largfer depending ont eh size of the number. If there ar eletters it usually stays the same as const char.
#9
C/C++ Programming / TGA and other image handling.
August 23, 2005, 02:05 AM
Alright Ive been asked to write some software for a companys os platform to support tga and other such images. Ive been researching tga to begin with and I was wondering how to exclude certain bytes or to include new ones to change the format. This way I can handle different parts of this image on my own how i want to handle them. Any insight would be greatly appreciated.
#10
C/C++ Programming / Re: Type Indentification C++
August 23, 2005, 01:35 AM
This is a company made OS platform which its textbox like control does not always have as a string. It sends and returns different types according to which is typed. Now i was wondering if there is anything in existence that can help me out at all here. Or any way i can build a function to identify a declared variable. Or perhaps could i take the data into some place holder of some sort and then identify what it is? i am lost with this and im in serious need here. Any help would be great.
#11
C/C++ Programming / Re: Type Indentification C++
August 21, 2005, 08:07 PM
Quote from: MyndFyre on August 21, 2005, 02:44 AM
I think he's looking for an equivalent to C#'s typeof() and objExpr.GetType() functions. This would be applicable when you're using a framework such as wxWidgets or MFC, where (for example) MFC classes all derive from CObject. Sure, you can static_cast or dynamic_cast to CObject, but you're not going to get a lot of functionality from it.

yes Myndfyre thats exactly the type of thing im looking for. Does C++ have an equivalent by any chance. Or any idea on how i would go about making my own function to determine this?
#12
C/C++ Programming / Re: Type Indentification C++
August 20, 2005, 11:19 PM
no what i mean is to identify it is a string. or to identify it is a integer. for example a user typing something in a control. Then to allocate i some space and give it a type as const char or int etc. if you egt what i mean its hard to explain.
#13
C/C++ Programming / Type Indentification C++
August 20, 2005, 10:01 PM
I was wondering how possible it is to get c++ to split up a given "thing" or object according to type. I dunno exatly hwo to explain this correctly, but like identify if what ur feeding it is a const char an int or a long etc. Picking correct types. so to speak. Any help is appreciated.
#14
C/C++ Programming / Re: w32 Winsock2 Problems
August 02, 2005, 11:40 PM
Fixed: Thanks kp for the insight on the sockaddr error I made it now connects fine.
#15
C/C++ Programming / w32 Winsock2 Problems
August 02, 2005, 06:55 PM

#include "winsock2.h"
SOCKET BnetSocket[1012]; long currentsock;

void bconnect(const int port, const char *server) {
//Includes liek everythign else needs these days
WORD version = MAKEWORD(1,1);
WSADATA wsaData;
WSAStartup(version, &wsaData);
LPHOSTENT lpHostEntry;
int storebuf;
currentsock = currentsock + 1;
BnetSocket[currentsock] = socket(AF_INET,SOCK_DGRAM,0);     //
unsigned int buf;
buf = BnetSocket[currentsock];

if(BnetSocket[currentsock] == INVALID_SOCKET) {
MessageBox(0,"Error On Socket Create", "Error", MB_OK);
return;
};
   

lpHostEntry = gethostbyname(server);
SOCKADDR_IN BAS; BAS.sin_family = AF_INET;
BAS.sin_addr = *((LPIN_ADDR)*lpHostEntry->h_addr_list);
BAS.sin_port = htons(port);

storebuf = connect(BnetSocket[currentsock], (LPSOCKADDR)&server, sizeof(struct sockaddr));
if (storebuf == SOCKET_ERROR) {
MessageBox(0,"Error On Connect", "Error", MB_OK);
return;
}
else {
MessageBox(0, "Connected!", "Worked!", MB_OK);
}

}


Alright at first it had some problems creating the socket properly, I fixed that.  Now it doesnt seem to connect to anything properly always sends me a connect error. Any Enlightenment on my problem well appreciated.