Search Result

Collapse
248 results in 0.0051 seconds.
Keywords
Members
Tags
c++
  •  

  • GigaKatowice
    started a topic Using C++ library in C#

    Using C++ library in C#

    Hi.

    I need help with my code.
    I'm trying to run unmanaged code from my C# code.


    C++ Code
    Code:
    Result_t oemGetImage(PBYTE pImageBuffer,
                         PDWORD pdwSize, WORD nTop,
                         WORD nLeft, WORD nRight,
                         WORD nBottom, WORD nSkip,
                         WORD nBits, FileFormat_t nFormat,
                         WORD nWhiteValue,
    ...
    See more | Go to post

  • abhdkjsd
    started a topic baffling printf error in c++
    in C

    baffling printf error in c++

    Hello to all,
    I have a baffling problem with printf in Borland c++ v5.2 as follows:
    If I use the command:
    Printf(“ ”);
    Before the condition :
    If(b[loc[pn][0]][0] == loc[pn][0]){
    ….
    }
    My code works correctly, but if I delete it this error occurs:
    “Threat stopped access violation at 0x403492 read of address … “
    Have every one experienced a similar problem or could help me?
    See more | Go to post

  • davidraimosson
    started a topic SIP Python/C++ binding fails to compile

    SIP Python/C++ binding fails to compile

    Hi all!

    After successfully compiling a Python/C binding with SIP I wanted to do the same thing with Python/C++. For some reason this doesn't work.

    Here's the files:

    fib.cpp
    -----------------------------------------------
    Code:
    #include "fib.h"
    
    int fib1(int n)
    {
    	if (n <= 0) {
    		return 0;
    	} else if (n <= 2) {
    		return 1;
    ...
    See more | Go to post

  • CPP freshman
    started a topic switch no default output
    in C

    switch no default output

    I tried this example:
    Code:
    void testSwitch(){
      for(int i=1;i<8;i++){
        cout<< i: <<i<< is ;
        switch(i){
          case 1: cout<<1; break;
          case 5: cout<<5; break;
          case 6: cout<<6; break;
          case 4: cout<<4; break;
    defaut: cout<<0; break;
        }
        cout<<endl;
      }
    }
    and the output...
    See more | Go to post

  • C2712: Cannot use __try in functions that require object unwinding

    Hello,

    I am migrating a software writen with VC++ 6.0 to VS 2010/VC++2010. and I have a project which does not compile in Debug mode. I have:

    Code:
    LBSC_AppUserInfoList *			
    LBSC_Session::GetUsersInfo( const LBSC_Ticket *pTicket )
    {
    	TSROut_GetUsersInfo	sOut;
    	C_Buffer			*pcbRet = NULL;
    	TSRIn_TicketPar		InPar;
    //...
    	ClntFree( (void *)sOut.szBuffer );  // dealoca o
    ...
    See more | Go to post

  • how do you get multiple source files to run one after the other?

    i am trying to run multiple source files but right after the first one finishes running the program closes and doesnt move on
    See more | Go to post

  • Phillis2013
    started a topic need help fixing if statements
    in C

    need help fixing if statements

    Code:
    #include <stdlib.h>
    #include <stdio.h>
    #include <ctime>
    #include <string>
    #include <iostream>
    using namespace std;
    int main()
    {
    srand ( time(NULL) );
    string face;
    int suit,yes,r,face1,num,yes1;
    r = rand()% 10+4;
    cout << r;
    if(r==1){
    face ="Ace ";
    }
    if(r==11){
    face="Jack ";
    ...
    See more | Go to post

  • W051
    started a topic Using strings and if statements in C++
    in C

    Using strings and if statements in C++

    The problem with this code is that there are no errors showing, but when i compile the program, the if else statements do not carry out as they should do. Both if statements show the same answer, for example the second if statement. If I type Y or N then I get the same thing, 'You will now choose an event'. How do i get rid of this problem? Is char supposed to be used or string?
    Code:
    #include <iostream>
    #include <iomanip>
    ...
    See more | Go to post

  • Stefan Nonneman
    started a topic Optical mouse as position encoder
    in C

    Optical mouse as position encoder

    Hi,

    Recently I discovered the beauty of the optical mouse as an incremental position encoder.

    An optical mouse usually contains one component in which a camera is linked to an image processor linked to an USB interface. The resolution depends on the camera resolution. On the internet it is easy to find back the datasheets of this type of components describing also how to read/write with them.

    My problem...
    See more | Go to post

  • bums735 bums735
    started a topic polymorphism, is their a better way to do this
    in C

    polymorphism, is their a better way to do this

    hello everyone, im a bit new to c++, im missing a concept of polymorphism. my problem is i cant figure out another way to override a method.
    Code:
     
    #include <iostream>
    class Base {
    public:
       Base();
       ~Base();
    public:
       virtual void OutPut() {std::cout << "Base" << std::endl;}
    };
    
    class Derived : Base {
    public:
       Derived();
    ...
    See more | Go to post

  • bogusbonafide
    started a topic XML generation using TinyXML
    in XML

    XML generation using TinyXML

    I have written the following classes to generate an XML which is as below:

    Code:
    <JBEToOverseerRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///c:/Share/resquest.xsd">
        <ConfigParams>        
               <Param Name="OverseerConfJBEPortNum">1025</Param>
               <Param Name="OverseerConfHctHostname">10.31.225.163</Param>
    ...
    See more | Go to post
    Last edited by Dormilich; Apr 24 '12, 02:38 PM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • i keep getting this error and i dont know how to fix it

    Code:
    #include <stdlib.h>
    #include <stdio.h>
    #include <ctime>
    #include <string>
    #include <iostream>
    using namespace std;
    int main()
    {
    srand ( time(NULL) );
    string face;
    int suit,yes,r,face1,num,yes1;
    r = rand()% 10+4;
    r=1;
    cout << r;
    if(r==1){
    face ="Ace ";
    }
    if(r==11){
    face="Jack
    ...
    See more | Go to post

  • ImportError: No module named Scientific_netcdf

    I am using Ubuntu on server and on my local machine. I have written my python script which runs fine on my local machine but shows some problems on my server because of compatibility issues. The solution of this came in my mind is to make binary file of that script which is running fine on my local machine. I searched for pyinstaller and follow the instructions for how to make binary from python script. For this reason I firstly install pyinstaller...
    See more | Go to post

  • pointing a variable to a member function outside a class

    Hello, my question is this.
    In C++, how do i call a method member of class A from a class B, using a pointer.
    By the way Class A and B are of different types.

    I read that when a pointer is pointing to member function it can only point member functions within the class. But how can i point to a member function outside the class.?????



    for example

    class A...
    See more | Go to post

  • need help figureing out why my if statements are not working right

    Code:
    #include <stdlib.h>
    #include <stdio.h>
    #include <ctime>
    #include <string>
    #include <iostream>
    using namespace std;
    
    int main()
    {
    	srand ( time(NULL) );
    	string face;
    	int suit,yes,r;
    	r = rand()% 10+4;
    	cout << r;
    	
    	cout << "hello welcome to a virtual card trick.\n";
    	cout << "what
    ...
    See more | Go to post
Working...