User Profile

Collapse

Profile Sidebar

Collapse
X Enterprises
X Enterprises
Last Activity: Dec 19 '10, 11:43 PM
Joined: Dec 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I figured it out. I actually have the queue stored in localStorage as stringified JSON.
    Code:
    function isInQueue(id, callback) {
        var result = false;
        var queue = localStorage["queue_rss"];
        if (queue != undefined) {
            var items = JSON.parse(queue).items;
            if (items) {
                for (var i = 0; i < items.length; i++) {
                    if ((items[i].id == id) ==
    ...
    See more | Go to post

    Leave a comment:


  • X Enterprises
    started a topic What is wrong with this conditional?

    What is wrong with this conditional?

    I'm working on a Chrome extension an I've hit a wall.

    Code:
    function isInQueue(id) {
    	chrome.extension.sendRequest({getQueueItems: 1}, function(response) {
    		var items = response.items;
    		if (items) {
    			for (var i = 0; i < items.length; i++) {
    				if ((items[i].id == id) == true) return true;
    			}
    			return false;
    		} else { return false; }
    	});
    }
    The...
    See more | Go to post

  • X Enterprises
    started a topic Converting a string to uint

    Converting a string to uint

    Hello.

    I'm making a DLL for a third party plugin. The tutorial that it came with is in C++ but i found a tool to convert my C# DLL to a DLL that will work for the application.

    The C++ tutorial it comes with says that to return a string (a textual string) you have to return it as a DWORD. I found out that the equivalent to a DWORD in C# is a uint.

    How do I convert a C# string to uint?

    Thanks....
    See more | Go to post

  • X Enterprises
    replied to convert LPSTR to LPCWSTR
    in C
    Thank you for all of the help.

    Luckily, I found a better way to accomplish what I wanted to do with a language I'm more comfortable with. (VB/C#)


    Thanks again soo much. :)

    I'm glad I could learn some things from this experience.
    See more | Go to post

    Leave a comment:


  • X Enterprises
    replied to convert LPSTR to LPCWSTR
    in C
    I thank you so much for this explaining. I really do. :)

    I can't use your example because I have to use the LPSTR argument in the function. (It's for a plugin I'm making.)

    But just another question:

    Code:
    string Nstr = pString;
    (I want this because I want to edit the string with string functions.)
    I've compiled it and it compiles fine. How would I convert the string into the type MessageBox needs?...
    See more | Go to post

    Leave a comment:


  • X Enterprises
    replied to convert LPSTR to LPCWSTR
    in C
    Thank you. The code compiles and makes the dll and everything. :)

    But, when I run the function, the main text is all garbled and in these Chinese characters and things. Any help with that? How would I convert the LPSTR to a regular string?
    See more | Go to post

    Leave a comment:


  • X Enterprises
    replied to convert LPSTR to LPCWSTR
    in C
    that doesn't work.

    I get this error:
    error C2065: 'LpString' : undeclared identifier
    See more | Go to post

    Leave a comment:


  • X Enterprises
    started a topic convert LPSTR to LPCWSTR
    in C

    convert LPSTR to LPCWSTR

    Hello :)

    I'm not new to C++, I just don't use it as much as I used to.

    But anyway, I need to convert LPSTR to LPCWSTR.

    Here's the function i'm using it in:
    Code:
    MYCOMMAND void PrintText( LPSTR pString )
     {
    	if(pString)
    	{
    		MessageBox(NULL, pString, "", MB_OK);
    	}
     }
    This gives an error.

    Help is appreciated.
    ...
    See more | Go to post

  • When the View property is set to "Details" you can't select a sub item because selecting an item selects the whole row.

    I'm not sure about other view types.


    You can, however, find the text value of a sub item.
    Code:
    Me.lstView1.SelectedItems(0).SubItems(1).Text
    See more | Go to post

    Leave a comment:


  • I understand that there is no JavaScript for windows applications and I know how JavaScript works in a web page. I also have much knowledge in mouse events and I know how to handle them.

    What I was asking was: Is there a scripting language that can be used in .NET apps that is similar to JavaScript. (In syntax.)
    See more | Go to post

    Leave a comment:


  • Okay.

    Is there some other scripting language for .NET similar to JavaScript?
    See more | Go to post

    Leave a comment:


  • X Enterprises
    replied to arrays in a custom class
    What error do you get?
    See more | Go to post

    Leave a comment:


  • X Enterprises
    started a topic Using javascript for scripting?

    Using javascript for scripting?

    How would I go about making a windows application extensible with JavaScript?

    Thanks. :)
    See more | Go to post

  • X Enterprises
    replied to C#-FORM Help showing a form
    in .NET
    Thanks
    that really helped!
    See more | Go to post

    Leave a comment:


  • X Enterprises
    started a topic C#-FORM Help showing a form
    in .NET

    C#-FORM Help showing a form

    Okay, so I want the user to click a button that will show a form.
    So I type in the button click action:

    SecondForm.Show ();

    When I try to compile it gives an error:

    Object reference needed for SecondForm.Show ();


    I thought the object is the form.


    All I want to do is show the form.
    See more | Go to post
No activity results to display
Show More
Working...