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
L

Lior Shoval

@Lior Shoval
About
Posts
15
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • newbie question - asp.net & javascript
    L Lior Shoval

    Hi. I'm new to asp.net and i have a question: let's say i have a login page. in the page i have a label which is supposed to show the client how many times he's attempted to login. I have several text controls to allow the client enter his username & etc... each control has a validator control and finally a submit button. like the validators control don't postback (by default), i'd like to count the times the client tries to login on the client side - meaning i have to have a javascript function. I've added the submit button onclick event using: this.loginBtn.attributes.add("onclick","cClick();"); the function get's called, and what i tried to do in it was something like: function cClick() { var num=document.getElementById("lblNumber"); var iNum=num.value; iNum++; num.value=iNum; } but it doesn't do anything. what's wrong here ? Thanks, Lior.

    ASP.NET question csharp javascript asp-net

  • codeproject webServices
    L Lior Shoval

    Thanks for the reply. The exception information is: An unhandled exception of type 'System.NullReferenceException' occurred in codeProjectWs.exe Additional information: Object reference not set to an instance of an object. When i use the same code to the the messageBoards brief, it works just fine. it seems as if the web service isn't functioning properly. as for the .ToString, i get you. Thanks again.

    C# csharp com help question lounge

  • codeproject webServices
    L Lior Shoval

    Hi. I'm new to C# and WS in general and i'm trying to write a simple windows application that get's the latest article briefs from codeproject's webService, but i keep getting an exception. maybe you can help me out here ? com.codeproject.www.LatestBrief ws = new com.codeproject.www.LatestBrief(); int maxNum = ws.GetMaxArticleListLength(); com.codeproject.www.ArticleBrief[] ar = ws.GetLatestArticleBrief(maxNum); foreach (com.codeproject.www.LatestBrief lb in ar ) { articles.Items.Add(lb.ToString()); } Thanks.

    C# csharp com help question lounge

  • Displaying Jpg in Listview
    L Lior Shoval

    simple, imageList doesn't support jpeg compressed images. only raw bitmaps. try using GDI+ to load the jpeg and then get an HBITMAP from it.

    C / C++ / MFC graphics learning

  • syntax question
    L Lior Shoval

    Thanks. I was under the impression that it had somthing to do with compiler or preprocessor optimizations...

    C / C++ / MFC question

  • syntax question
    L Lior Shoval

    checkout my reply to Johann and try to re-answer. Thanks.

    C / C++ / MFC question

  • syntax question
    L Lior Shoval

    both of you got it wrong... i asked what is the difference between: if (a==0) { } and if (0==a) { } and not between: if (a=0) { } and if (0=a) { } (notice the extra = sign which makes a big difference)

    C / C++ / MFC question

  • syntax question
    L Lior Shoval

    Hi. Can anyone explain to me once and for all why do i see people write something like: if (0==myVar) { ... } instead of: if (myVar==0) { ... } what difference does it make ?

    C / C++ / MFC question

  • Pie chart control problem
    L Lior Shoval

    you can use mschart control. it includes a pie chart as well. You can find it in the gallery. In order to add it simply choose Project->Add To Project->Components and controls->Registered activeX controls and choose Microsoft Char control.

    C / C++ / MFC c++ help com tutorial

  • custom control problem
    L Lior Shoval

    Thanks, but the problem is that the page's OnInitDialog doesn't get called... Again, tracing into DoModal code shows that the dialog template (atleast for the sheet) is found and that's it. Any other idea ?

    C / C++ / MFC c++ help question

  • custom control problem
    L Lior Shoval

    Hi. I have a problem which relates to custom control. let me try to describe it: description of dll1: holds CMyPropertySheet and CMyPropertyPage (customized deriviations from MFC) holds CPropertySheetMediator which is a singleton and is incharg of creating the CPropertySheet and adding the property pages to it. description of dll2: hold CGenPropertyPage which derives from CMyPropertyPage and holds a member of MyCustomControl which is the old thing this property page displays description of dll3: this is (like the first two) mfc extension dll which is dynamiclly linked to mfc (not statically) and is a dynamic library (not static .lib file) the custom control calls RegisterClass in it's constructor to register it's window class. description of application: the application calls a method of CPropertySheetMediator to create an instance of CMyPropertySheet which contains only one page, CGenPropertyPage then the application calls DoModal on that propertysheet instance it get's back from the mediator. for some odd reason, DoModal fails (tracing into mfc code reveals that do WM_INITDIALOG message is sent to the propertysheet but is not received by it) At the begining i thought it was a resources problem, but it isn't. If i remove the custom control place holder from CGenPropertyPage, the sheet is displayed and runs without a problem, so i figured it has something to do with the window class registration. ofcourse i should mention that if CGenPropertyPage resides in the application and not in dll2 everything works just fine. Any ideas ? Thanks.

    C / C++ / MFC c++ help question

  • localization problem
    L Lior Shoval

    Hello all. Recently I've encountered the weirdest problem. In every project i create, all the DDV error messages and all the common messages (i.e. in an SDI/MDI app. instead of seeing "Untitled" at the caption I see some garbage in german), i get in german, or some other language, and not in english. I've checked all the project resource files and made sure that the language is English u.s., and even under the resource tab in the project settings i've made sure that the language is english u.s., but still, all the messages are in difference language (even in CFileDialog, instead of Open, and All files for example, i get weird language). Any ideas ? Help will be appreciated...

    C / C++ / MFC help tutorial question learning

  • SystemParametersInfo
    L Lior Shoval

    Ofcourse I'm doing that... The code was only an example... try running it and see if it works for you

    C / C++ / MFC help

  • SystemParametersInfo
    L Lior Shoval

    Hi. can anyone please help me find out why this code doesn't work: char* nextWpName = "mypic.jpg" SystemParametersInfo (SPI_SETDESKWALLPAPER,0,nextWpName,SPIF_UPDATEINIFILE); my wallpaper simply disappears and goes blank. help...

    C / C++ / MFC help

  • Automating office applications into an MFC dialog
    L Lior Shoval

    Hi. I know it is possible to automate an office application into a dialog in VB. it's simple, MS included an activeX for it. But in C++/MFC it's different. I don't know which activeX to import (the one the vb uses) and the only documentation I found was how to automate office applications into SDI and MDI applications, but that's not good enough. I want to be able to create a dialog based application (or a new dialog in an already existing application - in my case) and embedd Word or Excel onto that document. Any ideas ? The perfect solution will be to use VB's activeX, but I don't know which is it.

    C / C++ / MFC c++ com tutorial question
  • Login

  • Don't have an account? Register

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