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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
N

navvara the infantryman

@navvara the infantryman
About
Posts
13
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to use the microsoft.directx namespace
    N navvara the infantryman

    since my project is a forms app written in C# this seems like the spot for this. i have installed the directx sdk 2005, i have the microsoft namespaces in my c:\\windows\assembly folder, but when i try to include one of these namespaces my compiler generates an error saying that namespace Microsoft.DirectX doesn't exist. The only microsoft namespaces are microsoft.win32 and 2 other which i can't remember right now. so i've installed the sdk, allowe it to add references to the .net framework but i ca't use the namespaces i would like to add these namespaces to my project but don't know what to do any help guy's? m$: It is normal for your screen to go blank and for your computer to restart itself several times

    C# csharp help dotnet graphics game-dev

  • WebPage download - limit download speed
    N navvara the infantryman

    my 2C are: use a buffer that is filled with new data at regular intervals, this will limit the total bandwith usage by any user but it will not restrict the actual downloada speed, here's some code (pretty schematic): while(!donwloadcompleted) if(GetTime-elapsed>X) {buffer=new data; elapsed=GetTime; //yourdownloadprocedure; } then do the download thingy; hope this helps m$: It is normal for your screen to go blank and for your computer to restart itself several times

    C# csharp performance question

  • My app won't run: "unverifiable assembly"
    N navvara the infantryman

    if my reply was abusive then i am sorry it's just the result of seing my work waste away when i thought it was completed and running perfectly + not having time to read all that documentation as my project is due on monday what i should have wrote is "i'm a dummy and don't know what all that means have you got a straightforward solution? (magic bullet, something simple?)" PS: from what i have read my app's assembly is checked when run but i don't know even if my app has one or how to make one or check it m$: It is normal for your screen to go blank and for your computer to restart itself several times -- modified at 8:00 Tuesday 3rd January, 2006

    C# help dotnet sysadmin csharp security

  • running caspol
    N navvara the infantryman

    read my topic below to get a description to the problem i am trying to adress. i wan't to run caspol so that it disables .net security, i've found an article stating that it should be run as :"caspol -security off" but how exactly d oi do this? is it a command line option? or what? m$: It is normal for your screen to go blank and for your computer to restart itself several times

    C# csharp security help question

  • My app won't run: "unverifiable assembly"
    N navvara the infantryman

    i don't really want to know how the app behaves i just want it to run, how can you make an untrusted source trusted so my program can run properly, i really need this program to run on just a couple of computers so modifying stuff would be posible but what do i need to modify? i've read something realted to my problem but i have no ideea as to how i could generate the certificates required or integrate them inot my code m$: It is normal for your screen to go blank and for your computer to restart itself several times -- modified at 7:36 Tuesday 3rd January, 2006

    C# help dotnet sysadmin csharp security

  • My app won't run: "unverifiable assembly"
    N navvara the infantryman

    So the basics of my app are completed, everything i'll need is complete (except directplay server) and it works, perfectly i might add. but it only works on MY computer whenever i try to run it on another it exits with a error code and a text saying: "Failed security policy check". if i try to run the app from my comp but from another computer's drive (via lan) the debbuger kick in and i get the above message+ "Unverifiable assembly". google had ssomething to say about the problem but i don't know how to implement the solution found there: "A temporary method of solving this issue is to simply give the LocalIntranet zone more trust. This can be done in the .NET Framework Configuration control panel applet. A permanent solution is to modify your security policy to give FullTrust to all assemblies signed with your key." to the problem as stated there (which i think is my problem): "If you're running (and remote debugging) your app from a local network share, then I suspect that you're running into a permissions issue. Programs that run on the CLR use something called code access security (CAS), which assigns trust based upon evidence it can gather from the code itself. This evidence is then compared against the security policy, and a permission grant is generated." anyway i'll be including the debug output when i run the app on another conputer, i hope that my post isn't too long and boring. "'forms.exe': Loaded '\\Homepc\2games (d)\forms\Debug\forms.exe', Symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msvcr71.dll', Symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll', No symbols loaded. 'forms.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded

    C# help dotnet sysadmin csharp security

  • preventing a form from closing
    N navvara the infantryman

    to close form1 i call form1.dispose(); that in turn calls components.dispose(); i dunno where to find the OnClosing event anyway setting form1.cancel to false will still close the form whiel allowing it's chold forms to exist? i mean really lose it not just hide it. what about calling Activator.CreateInstance(newForm); i've seen soem refereances to the functione but i have no clue as to what it does. m$: It is normal for your screen to go blank and for your computer to restart itself several times -- modified at 9:33 Friday 30th December, 2005

    C# help tutorial question

  • preventing a form from closing
    N navvara the infantryman

    1. When a button is clicked on Form1 it handles the event by creating a new form, like this: newForm *a=new newForm; a.Show(); the problem here is that when Form1 is closed newForm disspaears is closed too. how can a new a form be closed without closing all the forms it created? 2. in the above example newForm also has a button that creates an instance of Form1 when pressed. Form1.h has newForm.h included. the problem here is that when i try to include Form1.h in newForm.h i get an error saying that newForm is not defined in Form1 and Form1 is not defined in newForm.h. m$: It is normal for your screen to go blank and for your computer to restart itself several times

    C# help tutorial question

  • Forms messaging
    N navvara the infantryman

    Can forms return a value to, let's say the winmain function, or can something like SendMessage be used to send s message to another window's callback function? If so how? m$: It is normal for your screen to go blank and for your computer to restart itself several times

    C# question

  • which is the Best book for 'C'
    N navvara the infantryman

    stroustroups' book has some wapi in it m$: It is normal for your screen to go blank and for your computer to restart itself several times

    C / C++ / MFC c++ question learning

  • which is the Best book for 'C'
    N navvara the infantryman

    I do not understand what can be so funny m$: It is normal for your screen to go blank and for your computer to restart itself several times

    C / C++ / MFC c++ question learning

  • which is the Best book for 'C'
    N navvara the infantryman

    the best book of c++ is Bjarne Stroustroups's C++ (he's the guy who invented c++) m$: It is normal for your screen to go blank and for your computer to restart itself several times

    C / C++ / MFC c++ question learning

  • Creating multiple forms
    N navvara the infantryman

    I dunno if this is the right palce for this but i'm new to this forum so bear with me. So i finnaly got Visual studio.net 2003 and it's great i cannot believe how stupid i was to be sticking with visual studio instead of this. There's so many new things i can do with it, includinga form based application. But here's the problem: I want to have some sort of a connection between different forms, have one form start another but when i try to run another form and launch it from a form by calling Application::Run(new newForm); i get the following message: "starting a second message que on a thread is illegal". i can start a new form without getting this message, or any other error by calling either Application::Exit or Form::dispose, these both kill the old form's message que instanly and allow me to run a new form. the problem here is that the new form runs and closes imediately. I really need my program to start new forms from another, lets say when a button is pressed so any ideas guys? i have some of my own but i dunno how to implement them: -having the form return a value to the winmain function and let the form creation be handled there, unfortunately i dunno how to have a form return a value and writing a return 1 in the button's code won't help as the button is declared as a void function. besided since the form is a deiiferent application from the winmain the mesage won't know where to go. -making an invisible window and letting that run and receive messages from forms an handle the creation. i think that SendMessage or similar funtions would work but the problem here is that since the form is an external app i dunno how to get the invisible's window handle -starting a new thread whenever a new form is to be created, this might work ut it's too complicated and due to the architecture of my app i ould rather not use it. -calling Form::StartDialog(new newForm); won't do the trick for me although it's recomended by the error message. One other thing, whatever method you (hopefully) propose i would like it to include some sort of external function or callback that handles the form creation as in version 2 of the app i plan to have it receive it's messages through directplay rathr than them being sent by a form running on that putter (have forms creation messages sent by a remote putter and have a sort of clien-server app). A method that just links forms together would also be fine, actually anything would be fine. m$: It is normal for your screen to go blank and for your computer to

    C / C++ / MFC help csharp visual-studio sysadmin architecture
  • Login

  • Don't have an account? Register

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