Passing a filename for Playsound()?

Hi!I have to call a function inside a dll for pocket pc 2002 from labview7: the function contains Playsound, in fact I want my pocket pc to play a file.wav, the problem is passing the filename as a parameter..as a CStr?PlaySound doesn't recognize it!
what's the right way to pass a string/filename for Playsound?
thank you very much!!!
Marta

To call a DLL from your PDA application requires you do what is reported in THIS DOCUMENT. There are several steps to perform to make your code suitable for PPC.
HERE you will find an example that shows what needs to be done.
Passing the Filename parameter to the Playsound Function in Winmm.dll is pretty straightforward. Use StdCall conventions and use CString for file name.
Regards,
AlessioD

Similar Messages

  • Passing EDI filename for 850 from B2B Gateway to BPEL

    Hi,
    Is there any way to pass the EDI filename for 850 from B2B Gateway to BPEL via AQ? we want to store the inbound filename in the database along with the PO.
    we are using 10g.
    Thanks,
    Naveen

    Hi Naveen,
    Generally this could be done using the message id only as mentioned by ew. Just what you need to do is to lookup in the table and find the payload corresponding to that message id.
    However, WORKAROUND would be to use "Preserve Filename" feature of 11g B2B (which works only for FILE,FTP and SFTP transport protocols). In this case you have to pass the filename in the header "ACTION", as mentioned by Nitesh.
    Regards,
    Anuj

  • "E_PACK_ERROR: illegal filename for a PUT" Error in Packaging a PDF file

    Hi Jim,
    As per ContentServer_Technical_Reference.pdf (page no 9) I passed <filename>, <location> and <src> parameter in our packaging request xml. File is packaging successfully and service is also placing the encrypted file to new location listed in <location> but following error is comming:
    <error xmlns="http://ns.adobe.com/adept"
    data="E_PACK_ERROR http://myserverurl/packaging/Package illegal%20filename%20for%20a%20PUT"/>
    My Packaging XML:
    <package xmlns="http://ns.adobe.com/adept" action="add">
    <fileName>9781591439745.pdf</fileName>
    <location>ftp://username:password@myserverurl/www/folder/9781591439745.pdf</location>
    <src>http://myserverurl/folder/9781591439745.pdf</src>
    <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:title>9781591439745</dc:title>
    <dc:creator>Nicolya Christi</dc:creator>
    <dc:format>application/pdf</dc:format>
    <dc:publisher>Work Disribution System</dc:publisher>
    <dc:language>en</dc:language></metadata>
    <permissions><display/><excerpt/></permissions>
    <dataPath>C:/folder/9781591439745.pdf</dataPath>
    <expiration>2011-03-02T15:18:02+05:30</expiration>
    <nonce>LTIyNzc1Mjk4</nonce>
    </package>
    Please suggest me why the "E_PACK_ERROR http://myserverurl/packaging/Package illegal%20filename%20for%20a%20PUT" error is comming.
    I am waiting your reply...
    With regards,
    Mangal Varshney

    Hello Jim,
    I tried as you suggest not to use all three, filename, location and src. I removed the <filename> parameter from packaging xml and then try to package the same error are comming again. Jim this same code was working earlier, we are using same on our production sever till now but suddenly it stop working.
    "E_PACK_ERROR: illegal filename for a PUT"
    I checked the packaging.log file, the log message are:
    02 Mar 2011 05:41:56,673 TRACE AdeptServlet: request POST http://myserverurl/packaging/Package
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: Open jdbc:mysql://127.0.0.1:3306/adept with user=dmr_mysql_dba
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: SELECT distid, name, description, disturl, notifyurl, publickey, sharedsecret, maxloancount, linkexpiration FROM distributor WHERE distid = ?
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: rollback
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: SELECT distid, nonce, expiration FROM distusednonce WHERE distid = ? AND nonce = ?
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 2 = [B@6c2a78
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: INSERT INTO distusednonce(distid, nonce, expiration) VALUES(?, ?, ?)
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 2 = [B@6c2a78
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 3 = Wed Mar 02 06:41:56 CST 2011
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: DELETE FROM distusednonce WHERE expiration < ? AND distid = ? AND nonce = ?
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 1 = Wed Mar 02 05:41:56 CST 2011
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 2 = 00000000-0000-0000-0000-000000000001
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 3 = [B@6c2a78
    02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection: SELECT resourceid, item, description, title, publisher, creator, language, identifier, thumbnailurl, format, src, downloadtype FROM resourceitem WHERE src = ? AND downloadtype = ?
    02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection:   obj 1 = http://myserver2url/folder/9781591439745.pdf
    02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection:   obj 2 = simple
    02 Mar 2011 05:41:56,876 ERROR Package: Error in packaging
    java.io.IOException: illegal filename for a PUT
        at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
        at com.adobe.adept.packaging.servlet.Package.aquireLocationStream(Package.java:359)
        at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:535)
        at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:43)
        at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:184)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:579)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
        at java.lang.Thread.run(Unknown Source)
    02 Mar 2011 05:41:56,876 TRACE DefaultSQLDatabaseConnection: rollback
    02 Mar 2011 05:41:56,907 ERROR AdeptServlet: request error [myip]: E_PACK_ERROR http://myserverurl/packaging/Package illegal+filename+for+a+PUT
    02 Mar 2011 05:41:56,907 TRACE AdeptServlet: request end http://myserverurl/packaging/Package
    Please debug the above message and suggest me what i will do to rectify this issue.
    With Ragards,
    Mangal Kumar

  • FTP how to pass dynamic filename/directory location - reading a file in 11g

    Hi All,
    We r using FTP adapter(SOA 11g) for getting files in remote server, May i know how to pass dynamic filename and directory where the file exists for reading in server.
    Thanks,
    Rak

    Hey according to my understanding, the Dynamic partner links are set only for the Outbound invocations only. Is my understanding right? if so, how do we create the dynamic partnerlinks for the ftp get kind of stuff...??
    Thanks in advance

  • Sun Studio 12u1 cc passes empty filename strings to the linker

    Hi,
    Sun Studio 12u1 cc passes empty filename strings to the linker, as demonstrated with the following
    trivial test case.
    This problem occurs while trying to compile the Boost 1.42 beta 1 libraries with Sun Studio 12u1.
    goanna% cat e.c
    int main()
    return 0;
    goanna% cc -V
    cc: Sun C 5.9 SunOS_i386 Patch 124868-11 2009/11/21
    usage: cc [ options] files. Use 'cc -flags' for details
    goanna% cc "e.c" ""
    goanna% kde12u1
    goanna% cc -V
    cc: Sun C 5.10 SunOS_i386 Patch 142363-03 2009/12/03
    usage: cc [ options] files. Use 'cc -flags' for details
    goanna% cc "e.c" ""
    ld: fatal: file : open failed: No such file or directory
    ld: fatal: File processing errors. No output written to a.out
    goanna%
    Thanks, Mark

    Thanks for filing the bug report. It will be visible at [http://bugs.sun.com] in a day or two as bug 6921481.

  • How to pass dynamic filename to Receiver JMS channel

    Hi experts,
    I want to pass the dynamic filename to receiver JMS message Properties.
    for example
    I am passing directory name via adapter module AF_Modules/DynamicConfigurationBean with key and value combination like below. How to pass dynamic filename value to a dynamic property ( say DCJMSMessageProperty1)
    eg.
    key.0 - >insert http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0
    value.0 - >  testdirectory ( which is static value)
    Note: Im have not created any ESR object . i just have to bypass the file to a jms queue. I have used AAE integrated configuration scenario ( file to jms )
    Regards,
    Balaji
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:45 PM
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:46 PM

    Already given link for the dynamic configuration code snippet in the earlier reply... Below is the code snippet
    Note: Use Adapter Specific Message Attributes for the target Communication Channel(CC).Check the indicator for filename in the advanced tab of CC
    //UDF code
    String filename="";
    String NameSpace = "http:/"+"/sap.com/xi/XI/System/JMS";
    try{
          DynamicConfiguration conf = (DynamicConfiguration) param.get(
            StreamTransformationConstants.DYNAMIC_CONFIGURATION);
          DynamicConfigurationKey key  =  DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File",   "FileName");
           // read filename value
           filename = conf.get(key);     
          // So far we extracted filename value .. now do your logic  something like this...
          DynamicConfigurationKey key2 = DynamicConfigurationKey.create(NameSpace,"yourjmsvalue goes here");
           conf.put(key2,filename);
         } catch(Exception e){

  • Call ABAP program from Unix script passing dynamic filename

    Hi,
    Does anyone know if it is possible to call an ABAP program from a Unix script passing a dynamic filename to the ABAP program?
    We are receiving a file from an external company and on receipt of the file want to call an ABAP program passing the filename.  The filename is made up of File ID, Date and Time which we need to read in the ABAP program.  We usually use Events to trigger a program which is fine when the filename if static however since this filename will be dynamic we cannot do this.  In addition we cannot just rename the file to a static name in the Unix script as we need to know the value of the date and time from the file ID in the ABAP program.  I can change the ABAP program to check our /in directory for a Filename that starts with the fixed File ID however I thought there must be a better way of doing this.  We want the external company to put this information in a file header record but they don't want to change the file contents.  Any ideas would be appreciated.
    Thanks,
    Sinead.

    You could follow the following method
    1.Let the external file reside in the SAP application layer in a defined path e.g. /usr/sap/tmp/interface/working/
    2.Write an ABAP program which will include the following steps:-
       i) read all files in the file path using function module EPS_GET_DIRECTORY_LISTING
      ii) Read the data from files existing in the directory using OPEN_DATASET statement
    iii) After the files have been read move the files to another directory e.g. /usr/sap/tmp/interface/backup/ or you can delete the file.
    3.Schedule this program to be executed depending on the frequency of the external file being generated.

  • Passing a filename  as parameter in core java?

    Hi All,
    Instead of using a hardcoded filename i want to use a filename as
    parameter so that i can include any file without hardcoding it.For eg,
    Here is my sample code:-
    import java.io.*;
    class ParameterFile
    FileInputStream fin;
    public void open( String source) throws IOException
    fin=new FileInputStream(source); //The filename should be included instead of a hardcoded one.
              BufferedReader br=new BufferedReader(new InputStreamReader(fin));
              String line="";
              while(((line=br.readLine())!=null))
              System.out.println(line);
              fin.close();
    public static void main(String args[])
    try
    File source=new File(args[0]);//passing the filename as commandline argument
    ParameterFile pf=new ParameterFile();
    pf.open(source);
    }catch(IOException ee)
    Here when i run the program i want to pass the filename in commandline argument.Like java ParameterFile Readme.txt.
    Here it is giving an error in pf.source(source)saying cannot resolve symbol.What is the problem here pls. do rectify it.
    Thanx,
    m.ananthu

    public void open( String source) throws IOException <--- you put String type as your parameter in the "open" method.
    File source=new File(args[0]);//passing the
    the filename as commandline argument
    ParameterFile pf=new ParameterFile();
    pf.open(source); <---- but you pass in your parameter using File type...so, java compiler cannot find a method which take File as the parameter.
    try change
    public void open( String source) throws IOException
    to
    public void open(File source) throws IOException

  • Infospoke - How to single Logical Filename for all infospokes

    Hello all,
    I want to only have one logical path and logical filename for all of my infospokes.
    For example if I have infospokes ZAAA, ZBBB, ZCCC, I want to have only one common setting in the destination properties of TC:RSBO but three different distinguishable files on my OS.
    I think with the standard settings, I have to make one logical file for every infospoke I have.
    I am aware that I can put <DATE> or <TIME> etc in the logical file settings but that will not distinguish which infospoke the file came from.
    I want my file to look more like <INFOSPOKE>_<DATE><TIME>.csv
    I've already seen the document "How to Extract Data with OPEN HUB to a Logical Filename"  and this is not it because I have BW3.5 and 3.5 already does what this article says.
    Any help would be greatly appreciated.
    Just in case, I am on BW3.5 SP17 on Windows/SQL.

    Jasprit,
    Thanks for your input.
    The functionality of the FM you said is similar to the InfoSpoke functionality...
    Is it the same thing?
    I wonder if I use this it means it is not part of the InfoSpoke license...
    I will have our programer look at it and see what he thinks but in the mean time any other information is greatly appreciated.  Especially if I can stick with using the standard InfoSpoke functionality...
    Isn't this kind of functionality something that everyone wants?
    I wonder why SAP didn't make it like this?

  • Passing a value for date parameter from Oracle Forms to BIP

    Hi
    I have created a report with the following SQL query:
    select
    d_tables.d_seq,
    to_date(d_tables.d_created) creation_date,
    d_tables.d_created_by created_by,
    d_tables.d_pk,
    d_tables.table_name,
    d_tables.comments
    from
    d_tables, d_applications
    where
    d_tables.d_ppk = d_applications.d_pk
    and to_date(d_tables.d_created) >= nvl(:P_CRE_DATE_FROM, to_date(d_tables.d_created))
    and to_date(d_tables.d_created) <= nvl(:P_CRE_DATE_TO, to_date(d_tables.d_created))
    The parameters P_CRE_DATE_FROM and P_CRE_DATE_TO have been set up as date in BI Publisher with format dd-MMM-yyyy
    The report works fine when launched in BI Publisher.
    I want to call this report from Oracle Forms and I'm trying to pass the values for both the parameters. However, the report does not generate output based on values passed.
    Does it have to do with datatype? Does anyone know a solution for this?
    Kind regards,
    Aparna

    Thanks for your suggestion. I am already referring to the whitepaper and have integrated Forms with BI Publisher. The parameter passing is working fine for a varchar2 type of parameter. However, for a date type, there seems to be some problem.

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • Any way to pass Multiple Values for a single Label in the Parameter?

    I have a Report that Contains 2 Parameters, @Customer & @Area. When trying to set up the Available Values for @Area, I'm having issues using multiple values for one Label, i.e. = "4006" Or "4610"
    One of the Filters in the Report is an Operation number, which is the [OPERATION] field, which is setup as a filter on the Tablix referencing the @Area parameter. 
    PROBLEM: I cannot retrieve any data when trying to use the ‘Or’ Operator here. If I simply put “4006” or “4610” I retrieve data, but when trying to combine it returns no data.
    Example, I need to allow a user to select ‘Chassis Incoming’, which would include data from Operations 4006 & 4610.
    QUESTION:
    Any way to pass Multiple Values for a single Label in the Parameter?
    I realize the typical solution may be to use ‘Multi-Value’ selection, but in this case we want the User to select the Area and the multiple values for Filtering will be automatically determined for them. Otherwise, they are subject to not getting
    it correct.
    I have tried several different ways, such as =”4006” Or “4610”, =(“4006”, “4610”), = In(“4006”, “4610”), etc….
    Note: We are using Report Builder 3.0

    Based on my experience, there's no way to 'intercept' the query that gets passed back to SQL Server, so a Split wouldn't work.
    Try creating either a function or stored procedure using the code below (compliments to
    http://www.dotnetspider.com/resources/4680-Parse-comma-separated-string-SQL.aspx) to parse the string: 
    CREATE FUNCTION dbo.Parse(@Array VARCHAR(1000), @Separator VARCHAR(10))
    RETURNS @ResultTable TABLE (ParseValue VARCHAR(100))AS
    BEGIN
    DECLARE @SeparatorPosition INT
    DECLARE @ArrayValue VARCHAR(1000)
    SET @Array = @Array + @Separator
    WHILE PATINDEX('%' + @Separator + '%' , @Array) <> 0
    BEGIN
    SELECT @SeparatorPosition = PATINDEX('%' + @Separator + '%', @Array)
    SELECT @ArrayValue = LEFT(@Array, @SeparatorPosition - 1)
    INSERT @ResultTable VALUES (CAST(@ArrayValue AS VARCHAR))
    SELECT @Array = STUFF(@Array, 1, @SeparatorPosition, '')
    END
    RETURN
    END
    Once created you can do things like this:
    SELECT * FROM Parse('John,Bill,David,Thomas', ',')
    SELECT * FROM (SELECT 'John' AS TestName union select 'David' AS TestName) AS Main
    WHERE TestName IN (SELECT ParseValue FROM dbo.Parse('John,Bill,David,Thomas', ','))
    This is what your SQL query would probably look like:
    SELECT OperationID, OperationName FROM dbo.Operations
    WHERE AreaID IN (SELECT ParseValue FROM dbo.Parse(@Area, ','))
    You may need to fiddle around with the Separator depending on whether SQL Server inserts a space between the comma and next value.

  • How to passing multiple values for a parameter of discoverer(url parameters

    Hi All,
    I am trying to pass multiple values for a parameter of disco report. I am trying to include my url for discoverer viewer report. the values has the following
    'jeff,mark'
    'sfophiee,angela'
    Thanks and Regards
    Venkat

    Hello Venkat,
    I know there are some problems with 10.1.2.0.2, maybe if you haven't done yet you can try with 10.1.2.2, assuming this version should be working for multiple parameter values :
    OracleAS Discoverer 10.1.2.2 is installed with the following patch :
    Patch 4960210 PLACEHOLDER BUG FOR AS/DS 10G R2 PATCH SET 2 10.1.2.2
    So, once installed you can try adding your parameter as param_<parameter_name>='sfophiee,angela'
    Hope this helps, otherwise feel free to log a Service Request to Support.
    Best Regards,
    Gianluca

  • I need to start and stop logging based on a digital input event(or analog if necessary), log data for several seconds prior to the event, and have the data file close at the end of event and increment the filename for the next logging event.

    I don't know if this can be done with VI Logger or need to use Labview V7.1.

    After browsing through the VI Logger User Manual, it looks like the triggering that you are hoping to accomplish is possible. However, incrementing the filename for the next logging event is not going to be possible. VI Logger does exactly what its name tells - logs data. I don't think the automation that you are hoping to accomplish is possible.
    For help with setting up your application, if you do choose to stay with VI Logger, make sure to chek out the Getting Started with VI Logger Manual.
    Best of luck.
    Jared A

  • How do I change filename for single-image HTML pages in web gallery for LR 3

    Hi,
    I would like to change the default filename for the HTML pages produced by Lightroom 3 in the web gallery. Specifically, I would like to remove the string "_large" from the HTML filename, so it corresponds exactly to the image filename.
    Specifically, the URL by default is like this:
    http://www.mysite.com/content/_c_EMT2146_large.html
    and I would like it to be like this
    http://www.mysite.com/content/_c_EMT2146.html
    I assume there is some way to make this change using the template editors, but I can't figure it out.
    thanks,
    James Riemermann

    Turns out there's a fairly easy way to change that on Windows, but I can't figure out an equivalent on a Mac, which is where the need is. On windows, I can edit (after backing up) the following two config files:
    C:\Program Files\Adobe\Adobe Photoshop Lightroom 3.6\Shared\webengines\default_html.lrwebengine\grid.html
    C:\Program Files\Adobe\Adobe Photoshop Lightroom 3.6\Shared\webengines\default_html.lrwebengine\manifest.lrweb
    In which the "_large" string is appended and can be removed, following which the gallery works exactly as I would hope.
    But I can't find the equivalent files on the Mac, though I would assume they exist.

Maybe you are looking for