|
Let me explain what I am trying to do. I am trying to create an electronic file distribution program, much like Steam. Unlike Steam, I want any game developer who wants to use it, the option to. What I am looking to do is require as little code moddification on the devs part. What I want to happen is that the entire game is downloaded in one file (could be an encypted folder or some varient of a zip file). When the user runs this program it checks the database (online mode) or a file stored on the user's machine (offline mode) to see if the user has permission to unencrypt / unzip the folder and run the contents. This leads to a problem that the decrypted / unziped files can not be placed onto the user's harddrive in as accessible manner as doing so would allow a devious user to just obtain these files from another user who has legit permission. Thus receiving a free game. Any thoughts on how this can be done?
|
|
|
|
|
IMHO ... If your worried about someone cracking your scheme, give up now because it WILL happen no matter what you do. Copy protection has been a pipe dream for a couple decades now. Every scheme is crackable because every scheme comes down to a single little IF statement that can be changed by the "devious user" to ignore the conditions setup to protect your app. Suddenly, your app won't care if it was protected or not, encrypted or not, licensed or not, ...
Even Steam has been cracked six ways from Sunday. And on top of that, Steam is also locking out ligitimate users! Is this really what you want?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey is there a way to have mousewheel panning in a custom UserControl? I meen like in Internet Explorer when you click the middle mouse button you enter in panMode.
or can you give me a link to information on how to make a implementation of this!!
|
|
|
|
|
Hi,
Can anybody help me on how to develop a online poll using ASP.NET with C#. Pls let me know if you have any example.
Tx
|
|
|
|
|
Hi, i'm making a serverbrowser...(program that sends out udp sends with asynch sockets to videogame servers and listens for what comes back which contains info about the servers status)...and sometimes when i exit from the program i notice that it doesn't leave from the taskmanager...i.e. still running.
I have no clue why this is happening though because i set the socket timeout options to end if a query hangs (wonder if that even means anything when doing stuff asnchly)
zzz confussed.
|
|
|
|
|
Last month I asked a question on this forum about the relative efficiency of passing value types that were member of reference types or member of arrays as parameters to functions using ref and out. My original question was whether or not it would be more efficient to pass a large structure that was a member of a class using ref even if I didn’t need to make modifications to the stuct t needed to be passed back to the calling routine. In C or C++ it would be more efficient to pass by address and Jeffrey Richter in his excellent book: “Applied Microsoft .NET Framework Programming” also says that it is more efficient in to pass large value types using ref in C# (although he isn’t specifically referring to value types that are embedded in reference types). Anyway, the answer that I got back on this forum was that passing a value type that was embedded in a reference type using ref or out would require boxing the value type which of course would be very inefficient. I was also told that if I was going to pass something around a lot that it should be class rather than a struct. And I was also told that large objects should also be classes for efficiency.
Anyway, I am hoping to get some more opinions on this. I checked several C# books and searched the internet and I haven’t found anyone saying that passing a struct that is embedded in a class using ref would cause the struct to be boxed. Also I have looked at some IL code of that circumstance and I don’t see any Box instructions. Rather I see a ldflda instruction which: “Finds the address of a field in the object whose reference is currently on the evaluation stack” which sure looks to me like it is passing the address of the struct. If C# really does pass an address, that would be the more efficient way to pass a large struct. So from my understanding, it looks like passing structs embedded in classes using ref does not cause boxing therefore, I still don’t have any reason to believe that it would be more efficient to make large structs classes or that large objects that need to passed around a lot should be classes. Can anyone enlighten me further about this? Also, assuming that C# really does pass structs that are embedded in classes or arrays using ref by passing the address of the struct, how does C# get around not having to pin the enclosing class or array to prevent it from being moved by the garbage collector and there by making the passed address invalid? I know I am not supposed to think about addresses anymore but I really do need to figure out what the most efficient way of passing large structs around or if I really should make them classes – even though they don’t need to be classes for any other reason. Thanks so much for the help.
Paul Sawyer
|
|
|
|
|
hi,
i got several settings objects stored in a ArrayList. i can do the simply single object serialization. but, any method to serialize the whole ArrayList to a xml file?
thanks,
jim
|
|
|
|
|
Have you tried to just serialize the whole ArrayList alltogether? An ArrayList is an object like any other. If I remember right it is even serializable. So if all contained classes are serializable it should work with a single function call.
Other solution would be to copy your objects (from the ArrayList) into an object array (object[]) and serialize it.
|
|
|
|
|
yes, the current method i used is the copy the arraylist to a object array like below code but it need extra work
private ArrayList listTradePattern;
public class TradePatternList
{
public TradePatternList()
{
listTradePattern = new ArrayList();
}
[XmlElement("Pattern")]
public TradePattern[] TradePatterns
{
get
{
TradePattern[] tradepatterns = new TradePattern[ listTradePattern.Count ];
listTradePattern.CopyTo( tradepatterns );
return tradepatterns;
}
set
{
if( value == null ) return;
TradePattern[] tradepatterns = (TradePattern[])value;
listTradePattern.Clear();
foreach( TradePattern tradepattern in tradepatterns )
listTradePattern.Add( tradepattern );
}
}
}
|
|
|
|
|
I want to make pdf's out of my crystal reports in asp.net....i don't want to use the export function provided...instead i want to use some 3rd party pdf writers since the quality will be much higher(preferably Adobe Distiller)....does anyone know how can this be done....
|
|
|
|
|
I don't know, but there are alot of PDF open source applications on "SourceForge.Net", do search for "PDF"
|
|
|
|
|
I would like to get the X,Y coodrinates (in 'real time') of the mouse as I move it around a Windows Form...If possible I would like the cooddinates displayed to follow the cursor..
thanks
|
|
|
|
|
see this one on MSDN[^]
dunno how much real-time it is. (think about direct x)
Do you have visualStudio? IntelliSense is good if you want something obvious (Button.MouseMove in this case )
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
I've added a horizontal scrollbar to my form and want to have it change a value in a textbox. Well, everything works fine... except that the scrollbar can only reach 91 (with the maximum set to 100). Now, with the textbox I can set the scrollbar to its max, but I cannot scroll to it. Any known issues, tricks or properties I need to know about?
Thanks.
|
|
|
|
|
OK, I found the problem... but wtf? Maximum doesn't mean maximum? Since when does Maximum mean "maximum - largechange + 1"? How is that beneficial? Any insight as to why that design choice was made?
|
|
|
|
|
Hi
I have declared a Socket.I have some problem on recieving data.I can not find my answers about Socket flags And how could I use them. Actually I wanted to use "SocketFlags.MaxIOVectorLength" unfortunatly it did not worked.
tmpSocket.Receive(DataBuffer,0,BufferSize,SocketFlags.MaxIOVectorLength);
Please give me help or resource on this Subject ? Thanks in advance.
|
|
|
|
|
Hi there,
I have a little GDI+ (I think) question to ask... I am writing a little howitzer game (remember Scorched Earth?) to further my understanding of the .Net GDI+ world. Now I have an interesting problem: my tanks are (or should be) placed on a filled region representing the ground, according to its X-position, with its Y-position determined by the height of the ground at that point. What I need to know, is how to find the Y-coordinate of the top of the region, when given the X-coordinate. Currently all I can think of is looping a PointF through all the Y-coords for the given X-coord and testing when it becomes Region.IsVisible(Point) in the region. This is kinda hacky an I would like to know if the .Net framework (I'm using version 2.0) has anything else I could use?
Any help would be greatly appreciated!
A)bort, R)etry, I)nfluence with large hammer.
|
|
|
|
|
Hi everyone!
How can I encapsulate my program into a software (with setup.exe file)?
My English is so bad so that I hope u can understand what I mean ^_^.
Thank you!
|
|
|
|
|
If I am not wrong....Select the following procedure:-
Run .Net
Select New Project
Select Setup and Deployment Projects(from Project Types...in left pane)
Finally Select Setup Project (from Templates...in right pane)
Give the Proejct any App Name and Click Ok!!
Add the file which has your program and or even add the folder that
contains whole of ur program with source and etc etc.
Run it & u will have have ur setup.exe file generated.
Ppl if i perceive his question...make me correct and give him solution in that case...
Regards
|
|
|
|
|
we have a case study in class... and this is all about turbo c.. i don't know where to post this thread that is why i just place it here.. i need any pro programmer to help me.. well the prblem goes this way..
GROUP
PROBLEM
Write an astrology program. The user types in his or her birthday, and the program responds with the user’s sign and horoscope. The month may be entered as a number from 1 to 12 or as a word and not case-sensitive. Use the functions that involve strings (READ CHAPTER 8 OF THE THICK BOOK). Use a newspaper horoscope section for the horoscopes or you can write your own horoscope and dates of each sign. If the user is only two days away from an adjacent sign, the program announces that the user is on a “cusp” and also outputs the horoscope for the nearest adjacent sign. The screen design should also be considered.
pls reply in my email as soon as you read this.. thank you very much!! ^_^
|
|
|
|
|
First: wrong language.
Second: attempt to do the problem before you dump it into a forum.
|
|
|
|
|
and third, what's your question?
If you are just trying to get the legacy yTurbo C, you can download it from Borland for free. That should answer your question; the rest is academic.
Matt Gerrans
|
|
|
|
|
Hello!
I am trying to create Namespace Extension using Dave Rensin's article http://msdn.microsoft.com/msdnmag/issues/04/01/WindowsShell/default.aspx
After compilation his example I created c:\temp\test.{6B49E580-186E-4f8c-AB6A-E55D6F0F171D} directory. But when opening c:\temp I get message:
Failed to load resources from resource file
Please check your Setup
Can anybody help?
Oleg Chebotar
|
|
|
|
|
I'm trying to determine the conversion of this function...
in c:
exit(-1);
what's in c#?
|
|
|
|
|
Isn't it Environment.Exit()?
MSDN[^]
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|