|
i dont believe there IS a section for that here lol
rara avis in terris
|
|
|
|
|
people are respectable on CP buddy...
go die for crack looser
-- TTD --
|
|
|
|
|
wat do u mean, how am i disrespectfull? all im asking for is a little programing help to aid me in a video game
|
|
|
|
|
The software you have installed in your computer is only physically yours. Intelectually, it probably is not (depending on who developed the game).
This means that it is probably illegal for you to hack into files, which may result in the exposure of intelectual property rights of the game developer. The money, time, and effort that they spent on the game are probably theirs to keep, and they have the right to demand that you do not learn anything from it (either for yourself or others) nor change it in anyway.
So, they will probably not authorize someone like you or I to hack into the databases, change the code, and eventually sell a solution for hacking the game. Even if that is not your intention they have the right to demand that you don't even get close. And other similar things, like hacking into the executables and changing the names in the credits section is probably not authorized as well.
You show disrespect by not recognizing that you do not have permission to even look inside those files unless the game developper explicitly states otherwise. You do not have this right even if it is so easy for you to open the files. You show disrespect by not recognizing that there may be great effort, time, and money invested in it that gives them the right to say what things you should not be allowed to do. If you go ahead and do it without permission then you will be probably commiting a crime.
People often get confused of their rights because it is very easy to access protected material. It is easy to download MP3 or DVD from the WEB, but that doesn't make it legal or respectable. The same applies to software: it is rather easy to reverse engineer high-cost pieces of software and re-brand them or re-sell them, or even just come to know how they were made, but thet doesn't make it respectable or legal.
Rilhas
|
|
|
|
|
i see, but u play the game, u'll see how much "time and effort" the developers put into it but anyways, its perfectly fine to me, im having fun learning how code works, besides, wat do i gain by making myself invincible on a video game, it just makes the game boring and makes me either buy more of their games,our actually find the time th get some phis-phis-physical activity
|
|
|
|
|
how can i search a record in a database, the fastest way without inheriting the CRecordset class... Can you please show me an example of it...
-----------------------------Life is simple, you just complicate things---------------------------
|
|
|
|
|
The best way to search a database is to actually use the database to execute SQL commands.
Although with that said no one give you the answer you want unless you give at least some details on what you are trying.
John
|
|
|
|
|
the problem with executing sql commands is that it dont return a value. for example if im trying to retrieve the data of a particular record. do you have methods of doing it.
----------------------------Life is simple, you just complicate things---------------------------
|
|
|
|
|
AFAIK you put the same question many times last days.
One answer with exampe code, using MFC class CRecordset directly without inheriting, I gave you HERE[^].
What's the problem? Doesn't work? Hard to read? Looks ugly? Not enough speedy?
Have you even tried it?
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|
|
yes you have given me that code before, and i thank you for that... But i need speed now... and you use the forwardOnly attribute, which means i have no bi-directional scrolling... and if the database has 400 records it would take a time to get to the end...
--------------------------------Life is simple, you just complicate things--------------------------------
|
|
|
|
|
Life is simple, you just complicate things...
Well, I have used forwardOnly in my example just as an example and it's not intended to be copy/pasted.
Put what you wish instead. Is that a problem?
Although 400 records are not so much in real programming world, if you want a little bit more speed, use ADO instead of MFC database classes.
And if you really really need much more speed use the database native C APIs (if any available).
HERE[^] is an example of MFC wrapper classes built around MySQL C APIs. Very very speedy...
If you are using another database than MySQL, sorry but I have nothing available for the moment. You have to dig yourself for the sake of speed.
BTW. Are you really, really need "bi-directional scrolling" for your recordset?
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|
|
yes i kinda need it very much... so i could easily navigate through my database... thanks my question is answered
----------------------------------Life is simple, you just complicate things----------------------------------
|
|
|
|
|
(continued)
When dealing with databases, one of the issues that can increase queries speed in a way you have never dreamt is to optimize the database structure itself, as for example creating indexes where necessary.
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|
|
can someone please tell me how to tie a CRect to a listctrl?
|
|
|
|
|
Did not get the question
Jubin Chawda
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
Take a look help docs on CListCtrl::GetViewRect() and CListCtrl::GetItemRect() . If you are using a view derived from a CListCtrl you can access the member functions using GetListCtrl(). If you are accessing a control, do it through a member variable. For example:
m_cMyListCtrl.GetItemRect(0, rect, LVIR_LABEL);
Since a CListCtrl is a member of CWnd you can also access the entire controls client or window rectangle using GetClientRect() or GetWindowRect() .
There is an very good article here on using list controls[^]
Mark
|
|
|
|
|
what im trying to do is give my listctrl a gradient background so it blend in with the dialog but i dont seem to be getting anywhere.
|
|
|
|
|
How to send and receive data use the same port?
alantop
|
|
|
|
|
what type of xfer and client or server??
|
|
|
|
|
and are you talking about send files or just communcating...?
|
|
|
|
|
//basic send and recieve is...
#include <string>
#include <winsock2>
#pragma comment(lib,"ws2_32")
WSAData wsaData;
WORD wVersionRequested;
wVersionRequested=MAKEWORD(2, 2);
WSAStartup( wVersionRequested, &wsaData );
std::string rawcmd;
SOCKET communcationsock;
SOCKET ListenSocket;
SOCKADDR_IN service;
ListenSocket = socket(AF_INET, SOCK_STREAM, 0);
service.sin_family = AF_INET;
service.sin_addr.s_addr = INADDR_ANY;
service.sin_port = htons(21);
if (bind( ListenSocket, (SOCKADDR*) &service, sizeof(service)) == SOCKET_ERROR) {
printf("bind() failed.\n");
}
listen( ListenSocket, 1 );
communcationsock=SOCKET_ERROR;
while(communcationsock == SOCKET_ERROR) {
communcationsock = accept( ListenSocket, NULL, NULL);
}
bytesRecv = recv( communcationsock, CMD, 128, 0 );
rawcmd.assign(CMD, bytesRecv);
if(rawcmd=="..."){
char onconn[128]="Can You Hear Me\r\n";
send( communcationsock, onconn, strlen(onconn), 0 );
}
//Basicallly you have to open up a socket for communication.. then you can open up //another sock separately and send files using the same principal.
-- modified at 0:02 Saturday 1st July, 2006
|
|
|
|
|
Hey,
I'm trying to make a move from VB.NET over to C++ (Visual Studio 2003). I'm not new to programming, just programming in C++. I've read through about 10 tutorials over the last week or so and none of them explain how to do graphic stuff. I need to essentially recreate the GUI from my VB.NET application where it colors in defined regions and has drag and drop that knows when you drag something onto that specified region.
Is this possible? (obviously it's possible, but if it takes writing like 100 different function and classes and libraries, it's not really possible).
If anyone can suggest a starting point, I'd be very greatful.
Thanks all!
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
spelltwister wrote: I need to essentially recreate the GUI from my VB.NET application
I am curious, why do you "need to" do that?
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
Umm... I'm moving the game from vb.net to c++ so I need an interface I suppose. It has to be drag & drop and has to be able to have colored in regions because that's how the game is played. I'm not sure what you're getting at? /
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
spelltwister wrote: I'm not sure what you're getting at?
No, I am not sure what you are getting at. In your first post you said you "need to" I wondered why you needed to port the application to C++ from VB.NET.
The C++ environment supports .NET development so the port from VB.NET to C++.NET should be a 1 to 1 port. The .NET class library is exactly the same in VC++.NET as in VB.NET.
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|