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
X

Xargo

@Xargo
About
Posts
8
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Visual Studio doesn't detect invalid parameter type errors?
    X Xargo

    Anyone still has an idea? This seems rather weird...

    C# visual-studio csharp graphics help tutorial

  • Visual Studio doesn't detect invalid parameter type errors?
    X Xargo

    How do I do this? I've been searching for it on the internet, but can't find it. The Intellisense options seem rather limited.

    C# visual-studio csharp graphics help tutorial

  • Visual Studio doesn't detect invalid parameter type errors?
    X Xargo

    I've been working with Visual Studio as hobbyist for a few years, but I only discovered this today. The way I found out was by moving some methods to another class. One of the methods used a Point class (of the System.Drawing namespace), but I didn't add a using-directive for that namespace. Then when I wanted to pass an instance of the Point class to that method from another class (which did have the directive to System.Drawing), it told me I was passing the wrong type. That's when I discovered I forgot the using-directive to System.Drawing in the codefile of the method that also used the Point class. However, Visual Studio never warned me for that. Although the type I defined for that parameter was completely non-existing, it didn't mark it. Even if I said the parameter should be of type "sldhfsdf", which didn't exist at all (no directive to a potential namespace could have solved that), it still didn't mention anything, and acted as if it was an existing type. I could even use the parameter in the method, and it would propose it in the IntelliSense list. Only I try to compile, it does return an error. To clarify, here's an example that seems to be alright to Visual Studio's error checking.

    public class Test
    {
    public void MyMethod(abcabc var1)
    {
    var1 = null;
    }
    }

    While writing this piece of code, Visual Studio won't tell me this is wrong. The only way to find out is by compiling, or calling the method somewhere so it would tell me I'm either passing an unexisting or invalid variable. Both Visual Studio 2008 and 2005 seem to do this. Could anyone explain me why this is the case?

    C# visual-studio csharp graphics help tutorial

  • Suggestion: Remove Account
    X Xargo

    You never know what could happen, like... opening a gate to another dimension or so. ;-) I'll just leave it there then.

    Site Bugs / Suggestions

  • Suggestion: Remove Account
    X Xargo

    That's not too hard to solve. Just remove the reference and replace the names with "*username* [DELETED]", an unlinked string. Keeping every account ever made sounds a bit inefficient to me. =/ Just my opinion of course.

    Site Bugs / Suggestions

  • Suggestion: Remove Account
    X Xargo

    Sure, but it's just weird this account's going to be here for eternity, while I'm absolutely certain I won't ever use it, as I've got another one. I wonder if it's just because Codeprojects don't want to see their shiny 5.5 million members number go down... ;)

    Site Bugs / Suggestions

  • Suggestion: Remove Account
    X Xargo

    .

    Site Bugs / Suggestions

  • C# How to convert a string from English to Japanese ?
    X Xargo

    I don't know alot about Japanese, but I don't think the Japanese alphabet can be compared to the Latin (our) alphabet. Japanese and Chinese characters are syllables, no letters. I also think the Japanese alphabet has alot more characters than ours. Edit: People that want to see Japanese characters will need the East-Asian characters to be enabled with their OS. Check this Wikipedia page for more information how to do this (not too hard). http://en.wikipedia.org/wiki/Help:Multilingual_support_(East_Asian)[^]

    C# csharp com debugging help tutorial
  • Login

  • Don't have an account? Register

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