Click here to Skip to main content
12,700,376 members (33,382 online)

JavaScript

 
AnswerRe: Fastest way to select all elements in a *ListBox* Pin
BobJanova13-Sep-12 0:04
memberBobJanova13-Sep-12 0:04 
GeneralRe: Fastest way to select all elements in a *ListBox* Pin
A*****13-Sep-12 13:27
memberA*****13-Sep-12 13:27 
GeneralRe: Fastest way to select all elements in a *ListBox* Pin
A*****13-Sep-12 19:55
memberA*****13-Sep-12 19:55 
Questionjavascript _> activex passing by reference Pin
Johan000112-Sep-12 2:40
memberJohan000112-Sep-12 2:40 
AnswerRe: javascript _> activex passing by reference Pin
twseitex16-Sep-12 2:09
membertwseitex16-Sep-12 2:09 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 1:46
memberJohan000117-Sep-12 1:46 
GeneralRe: javascript _> activex passing by reference Pin
twseitex17-Sep-12 9:30
membertwseitex17-Sep-12 9:30 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 22:38
memberJohan000117-Sep-12 22:38 
<b>CSDCtrlClass.GetMemoryBuffer("BMP", buf);

what returns this function ?

var ReturnValue=CSDCtrlClass.GetMemoryBuffer("BMP", buf);

or

var buf = new Array(200000); // e.g. global var</b>

THE RETURN VALUE OF THE FUNCTION IS ZERO , WHICH INDICATES THAT THE FUNCTION EXECUTED SUCCESSFULLY.
HOWEVER THE FUNCTION HAS 2 ARGUMENTS 1. "BMP" which is an input string and correct!
2. "buf" which is a return object of binary bytes
This is the array that is empty all the time.
It should be populated a block of binary data
representing a bitmap image( approx 154k), after the function is called.





PS when calling this function in c#( windows application) the 'buf' is declared as Object and passed by reference i.e.

<pre lang="c#">object buf = null;

CSDCtrlClassFPLite.GetMemoryBuffer("BMP", ref buf);</pre>

IT WORKS CORRECTLY AND RETURNS THE BINARY DATA, MY QUESTION IS WHY DOES IT NOT WORK IN JAVASCRIPT FUNCTION, AND HOW SHOULD I DECLARE THE 'buf'.
GeneralRe: javascript _> activex passing by reference Pin
twseitex18-Sep-12 9:58
membertwseitex18-Sep-12 9:58 
GeneralRe: javascript _> activex passing by reference Pin
Johan000119-Sep-12 0:28
memberJohan000119-Sep-12 0:28 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 2:03
memberJohan000117-Sep-12 2:03 
AnswerRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 2:02
mvpManfred R. Bihy19-Sep-12 2:02 
GeneralRe: javascript _> activex passing by reference Pin
Johan000119-Sep-12 3:02
memberJohan000119-Sep-12 3:02 
GeneralRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 3:06
mvpManfred R. Bihy19-Sep-12 3:06 
GeneralRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 3:12
mvpManfred R. Bihy19-Sep-12 3:12 
QuestionCreate AD block functionality for my website Pin
swayam.test1.gmail10-Sep-12 20:58
memberswayam.test1.gmail10-Sep-12 20:58 
AnswerRe: Create AD block functionality for my website Pin
enhzflep11-Sep-12 23:06
memberenhzflep11-Sep-12 23:06 
QuestionHow does Google show_ads.js work? Pin
swayam.test1.gmail10-Sep-12 20:57
memberswayam.test1.gmail10-Sep-12 20:57 
QuestionHow to send request data from one tab to other tab which are on same jsp Pin
mayureshdh9-Sep-12 19:52
membermayureshdh9-Sep-12 19:52 
Questionjavascript/jquery Pin
chaim_zvi8-Sep-12 9:50
memberchaim_zvi8-Sep-12 9:50 
Questionshow alert in javascript and not continue Pin
ptvce6-Sep-12 22:26
memberptvce6-Sep-12 22:26 
AnswerRe: show alert in javascript and not continue Pin
J4amieC6-Sep-12 23:11
memberJ4amieC6-Sep-12 23:11 
GeneralRe: show alert in javascript and not continue Pin
ptvce6-Sep-12 23:30
memberptvce6-Sep-12 23:30 
AnswerRe: show alert in javascript and not continue Pin
MKAdeel13-Sep-12 2:22
memberMKAdeel13-Sep-12 2:22 
GeneralRe: show alert in javascript and not continue Pin
ptvce16-Sep-12 21:22
memberptvce16-Sep-12 21:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 20 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid