User Profile

Collapse

Profile Sidebar

Collapse
genesistr
genesistr
Last Activity: Jun 12 '10, 02:04 PM
Joined: Aug 5 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to add C++ project with two 3rd party unmanaged DLLs

    I have two 3rd party unmanaged c++ dll and one C++ project which uses these dlls. In my asp.net project i added c++ project as reference but in runtime it fails with that error:
    Exception from HRESULT: 0x8007007E

    Visual studio puts c++ project's dll into /bin folder auto. Even if i put other dlls into bin folder, it fails.
    See more | Go to post

  • genesistr
    started a topic sound problem

    sound problem

    Code:
    File.prototype.OpenAudioFile = function(dPath)
    {
    	var rem = document.createElement("div")
    	rem.name = "divv";
    	rem.id = "divId";
    	
    	rem.innerHTML = '<embed src="' + dPath + '" autostart="false" name="' + dPath + '"></embed>';
    
    	document.body.appendChild(rem);
    }
    I'm using the way above to solve my sound...
    See more | Go to post

  • genesistr
    replied to dynamic audio loading
    Code:
    File.prototype.OpenAudioFile = function(dPath)
    {
    	var rem = document.createElement("div")
    	rem.name = "divv";
    	rem.id = "divId";
    	
    	rem.innerHTML = '<embed src="' + dPath + '" autostart="false" name="' + dPath + '"></embed>';
    
    	document.body.appendChild(rem);
    }
    my sound problem is solved using the way...
    See more | Go to post

    Leave a comment:


  • genesistr
    replied to dynamic audio loading
    as i see in some file loader code "onload" function was used as a callback to check if element loading is completed. after geting message from onload i do something else and i call
    document.body.a ppendChild(this .audio);
    in a different class. i can see all properties of aSound and this.data from this.audio.
    and i dont understand with file object but i just tested. i wasnt sure which one will work. i had some base knowledge...
    See more | Go to post

    Leave a comment:


  • genesistr
    started a topic dynamic audio loading

    dynamic audio loading

    hi,
    I'm trying to load audio files dynamicly but i got some errors.

    my code :
    Code:
    File.prototype.OpenAudioFile = function(dPath)
    {
    	aSound= document.createElement("embed");
    	aSound.src = dPath;
    	aSound.name = "ses";
    	this.data = aSound;
    	aSound.onload = this.FileDownloaded();
    }
    it doesnt work and i tried :
    Code:
    document.write("<embed
    ...
    See more | Go to post

  • genesistr
    replied to timer problem
    it looks fine for me also but i dont understand why i lost this' objects. i got this error just when i use timer callback method.
    See more | Go to post

    Leave a comment:


  • genesistr
    replied to timer problem
    sorry i pasted with wrong function name. it's already file.WaitForUnF inishedFiles(); .
    See more | Go to post

    Leave a comment:


  • genesistr
    started a topic timer problem

    timer problem

    Hi,

    I have timer class and some classes use timer.
    but when i come back from timer with callback function, i can see this. properties.

    Code:
    function Timer(dName, dCallback){
        this.timer = null;
    	this.name = dName;
    	this.isRunning = false;
    	this.interval = 50;
    	this.callback = dCallback;
    }
    
    Timer.prototype.Start = function()
    {
    	this.timer = self.setTimeout(this.callback,this.interval);
    ...
    See more | Go to post

  • thanks gits.
    all works fine now :)
    See more | Go to post

    Leave a comment:


  • @gits your method is working but i couldnt find how to call base constructor.

    Code:
    function Drawable(dElement)
    {
        this.element = dElement;
        ....
    }
    Code:
    Image.prototype = new Drawable;
    Image.prototype.constructor = Image
    
    function Image(path, x, y, visible)
    {    
        debugtext("ImageDeneme");
        this.image= document.createElement("img");
    ...
    See more | Go to post

    Leave a comment:


  • im doing the same but as i said i got "prototype is read-only" error.
    See more | Go to post

    Leave a comment:


  • acctually i handle that problem and it works now but i have problem with inheritance now.

    ImageClass.prot otype = new Drawable(...);
    ImageClass.cons tructor = ImageClass;

    but i got "prototype is read-only" error. I'm working on a different platform but it supports javascript and as i got, it has different version of js.

    could you tell how to inherit from a super class?
    See more | Go to post

    Leave a comment:


  • genesistr
    started a topic javascript using object between js files.

    javascript using object between js files.

    Hi,
    I have Image.js and Main.js files. I create image object like test = new Image(...);
    and it can be seen on screen but when i try to do call Move method like
    test.Move(x,y); it crashes. Is there anyway to do that?

    My code :

    main.js:
    Code:
    var objBall = new Image("abc.gif", 0, 0, visible);
    objBall.Move(50,50);
    image.js

    Code:
    function ImageDeneme(path,
    ...
    See more | Go to post
    Last edited by Dormilich; Aug 5 '09, 02:57 PM. Reason: please use [code] tags when posting code
No activity results to display
Show More
Working...