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
W

wajih boukaram

@wajih boukaram
About
Posts
11
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Making a DLL
    W wajih boukaram

    yeah that link helped - thanks :)

    C / C++ / MFC question

  • Making a DLL
    W wajih boukaram

    yeah i already know that bit when i have regular functions that don't depend on the library (the one that I didn't write) the dll builds just fine it's when i use the library's functions in my dll that i get the linking errors.

    C / C++ / MFC question

  • Making a DLL
    W wajih boukaram

    Hello I need to write a DLL for some functions that I have which depend on a separate lib file. when i write a short test program that uses the functions as is and link against the lib file, everything works great. But when i take the same functions and put them in a DLL, it doesn't work (i get some unresolved references to any function that I use from the lib file). Am i supposed to do anything special to get it to recognize the functions from the lib? thanks for your time.

    C / C++ / MFC question

  • Rotation Matrix
    W wajih boukaram

    Hi I have a bit of a math problem (related to graphics) If i have three vectors and an origin representing an orthonormal system, how do i get the rotation matrix that would rotate the regular orthonormal system to this new one? (by regular i mean at O(0,0,0) through i(1,0,0), j(0,1,0), and k(0,0,1) ) thanks for your time :)

    Algorithms question graphics help

  • writing an avi file
    W wajih boukaram

    hi thanks for the reply but that article show's how to load an avi file as a resource - what i need to do is save a sequence of images as an avi file without using vfw.

    Managed C++/CLI question

  • writing an avi file
    W wajih boukaram

    Hi I'd like to be able to take a set of bitmaps and write them to an avi file without having to use vfw or anything platform specific since it has to be cross-platform i don't need audio or anything else - just a sequence of images - any ideas?

    Managed C++/CLI question

  • Asynchronous webrequest problem
    W wajih boukaram

    yea it does but all that matters is the callback function (which i assigned when i called getResult(url, new AsyncCallback(signIn)); so its hooked up to signIn it works fine the way it is - only problem is changing the form's control values - i think it might have something to do with threading because if i try calling the function a second time (I hate c# sometimes) it says sumthin about accessing an object that was not created on the same thread - when i first tried to do this asynchronously i actually just created a new thread that called my initial signIn function which was just a regular function and not a callback - i got the same error message when acessing the controls. any suggestions? thanks for your replies.

    C# csharp design sysadmin help

  • Asynchronous webrequest problem
    W wajih boukaram

    Hi thanks for your quick reply these are methods of my MainForm class (base class is Form) private void getResult(String url, AsyncCallback callback) { try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "GET"; if(useCompression) request.Headers.Add("Accept-Encoding: gzip,deflate"); request.CookieContainer = mainCookie; request.AllowAutoRedirect = true; request.AllowWriteStreamBuffering = true; IAsyncResult result = request.BeginGetResponse(callback, request); } catch (WebException wex) { MessageBox.Show("Error Connecting: Check your connection settings...\nDetails: " + wex.Status.ToString()); return; } } private void SignInButton_Click(object sender, EventArgs e) { DisableSignInControls(); String url = mirror + "signin.aspx?user=" + UserNameComboBox.Text + "&pass=" + PasswordTextBox.Text; mainCookie = new CookieContainer(); getResult(url, new AsyncCallback(signIn)); } private void signIn(IAsyncResult result) { HttpWebRequest request = (HttpWebRequest)result.AsyncState; HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(result); String responseResult = (useCompression ? decompressResponse(response) : new StreamReader(response.GetResponseStream()).ReadToEnd()); int i = responseResult.IndexOf("<response>"); if (i < 0) MessageBox.Show("Corrupt response. Please try again."); else { int j = responseResult.IndexOf("</response>"); String temp = responseResult.Substring(i + 10, j - i - 10); if (temp != "") { String[] returnValues = temp.Split('|'); if (returnValues.Length == 1) MessageBox.Show(returnValues[0]); else { sid = returnValues[0]; num_messages = int.Parse(returnValues[1]); MessageNumber.Text = "Messages: Left " + num_messages; SignInGroupBox.Visible = fal

    C# csharp design sysadmin help

  • Asynchronous webrequest problem
    W wajih boukaram

    Hi I began writing a c# program and everything was going ok until i tried to use asynchronous webrequests instead of synchronous ones (since the UI would be unresponsive while it was fetching the response) and i have a slight problem: the user signs in by clicking a button on the form - the program fetches the data from the server asynchronously - the problem is with the callback function - when debugging i see that the request was successfully completed but when i try to access any controls (like filling a textbox with the response) from the callback function it just stop executing the function - no exceptions, no errors - i can still interact with the program but it just wont alter anything to do with the form's controls (the form's data members however were being altered with no issues - a string and an integer to be exact) I'm a newbie at c# and i just started using the asynchronous method so if im doing sumthing wrong please advise thank you for your time

    C# csharp design sysadmin help

  • How can I replace all occurance of a string except when it's enclosed with a special tag?
    W wajih boukaram

    hi for something simple like that just try this: someVar = someVar.Replace("

    C# question html com help

  • GZipStream for compact framework 2.0
    W wajih boukaram

    hi - i'm a newbie at c# programming for pocket pcs (mainly a c/c++ programmer) i'd like to believe i've gotten the hang of it but some things still escape me like i used the GZipStream to uncompress an http web response stream on the regular framework and it works fine - but when i move to the pocket pc it seems i am not allowed to create a GZipStream (the compression namespace is unavailable) i'd appreciate any help anyone can give me i want to achieve the same result in any way possible (if there is a simple algorithm i could just plug in then great - or a way to include the class then even better) btw i have tried SharpZipLib and it didn't work (it threw an exception saying "Error baseInputStream GZIP header, first byte doesn't match") thanks so much to anyone who took the time to read this.

    C# help csharp c++ algorithms regex
  • Login

  • Don't have an account? Register

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