C++ :: Install CPP Unit In Solaris?

Apr 3, 2013

How to Install CPPUnit in Solaris? I don't have gcc in Solaris and all the packages I have downloaded for CPPUnit needs gcc to be compiled.

View 4 Replies


ADVERTISEMENT

C++ :: Works On Solaris But Not On Linux?

Apr 24, 2013

I have this following piece of code:

int id = 5;
const char *ptrId;
ptrId = ( int_to_str(id) ).getPtr(); // Works in Solaris well

But the above code prints some junk values when I run the same on Linux machine. But the following works well on Linux:

String temp = int_to_str(id);
ptrId = temp.getPtr();

The prototype of getPtr() is:
const char* String::getPtr() const

View 2 Replies View Related

C :: How To Install GMP Library

Feb 19, 2013

How do you install the gmp library.How do you use it?

View 11 Replies View Related

C/C++ :: Download And Install Gcc Compiler?

Jul 20, 2014

how to download and install gcc compiler?

View 4 Replies View Related

C# :: How To Install File One By One In Folder

Aug 23, 2014

i get the name of file upon every OK click in the list of array.

i want the file name to be written in command prompt to install the file like

C:WindowsSystem32msiexec.exe filename.exe /quiet

fi is array representing the files

following is a code ..

foreach (FileInfo fiTemp in fi)
{
p2.StandardInput.Write("msiexec.exe ");
p2.StandardInput.Write(fiTemp.Name);
MessageBox.Show(fiTemp.Name);
}

View 7 Replies View Related

C Sharp :: Unable To Get Service To Install?

Oct 17, 2014

I am trying to get my service to install into services but it will not. When I go to the command line and run the InstallUtil.exe service.exe it fails miserably. This is what I get on my console:

The Install phase completed successfully, and the Commit phase is beginning.

See the contents of the log file for the C:publish codeImportImport. exe assembly's progress.

The file is located at C:publish codeImportImport.InstallLog.

Committing assembly 'C:publish codeImportImport.exe'.

Affected parameters are:

   logtoconsole = true
   logfile = C:publish codeImportImport.InstallLog
   assemblypath = C:publish codeImportImport.exe

No public installers with the RunInstallerAttribute.Yes attribute could be found in the C: publish codeImportImport.exe assembly.

Remove InstallState file because there are no installers.  

The Commit phase completed successfully.  

The transacted install has completed.enter code here    

View 2 Replies View Related

C :: Assigning A Structure As A Unit

Feb 21, 2014

I am reading the book C Programming Language. On Structures, it says:

"The only legal operations on a structure are copying it or assigning to it as a unit, taking its address with &, and accessing its members."

What does it mean assigning a structure as a unit?

View 12 Replies View Related

C++ :: How To Install High Precision Arithmetic Library

Jan 12, 2013

One of my programs I recently created, needs higher precision then what doubles can provide. So I am wondering how I install a library like this [URL] .... I don't quite understand exactly how to install them. Im using visual studio 2012 ultimate right now!

View 3 Replies View Related

C/C++ :: Time Unit Returned From GetProcessTimes

Jan 25, 2014

I have a question about the exact time units returned by the GetProcessTimes function from the Windows API. Is it in seconds or some other unit?

View 3 Replies View Related

C/C++ :: Winsock Sending X264 Nal Unit

Mar 13, 2015

I am currently trying to send a x264 nal unit using WINSOCK with a reliable multicast socket. It isn't decoding properly, and my initial thought is I am not receiving all the bytes correctly. I was hoping some fresh eyes can provide insight on errors or any improvements. I have seen some topics about this subject, and they showed sending entire structs with the socket. However, I am concerned about endianess so I am trying to stay away from that approach. I have commented out the decoding part, until I am confident that I am receiving the nal unit properly.

Server:

#include <WinSock2.h>
#include <WS2tcpip.h>
#include "wsrm.h"
#include <Windows.h>
#include <stdio.h>
#include <stdint.h>
#include <iostream>
#include "x264Encoder.h"

View 4 Replies View Related

C# :: Unit Of Work And Repository Pattern

Oct 18, 2014

I have implemented the IRepository and UnitOfWork Patterns in my project and I have made a little tweak in the UnitOfWork pattern .

public class UnitOfWork : IDisposable {
private DataContext m_Context = new DataContext();
private bool m_disposed = false;

#region Repositories
private GenericRepository<Product> m_ProductRepository = null;
private List<object> m_RepositoryList = new List<object>();
#endregion

[Code] ....

In my UOW class I have the public property ProductRepository. Now my idea was instead of creating a public property for every repository that I have, I created the generic method GetRepository<T> to dynamically create repositories.

Do you think that this change will have bad side effects. I think that it will improve the maintainability of the code.

View 1 Replies View Related

C++ :: How To Install Glew For Code Blocks On Windows Vista

Apr 29, 2013

I downloaded glew 1.9.0 files and dragged the lib, include, and bin of the glew into the mingw folder within Code Blocks. I don't know if this is the right thing to do I don't understand how this stuff works. Anyway, I tried to compile my openGL 3.0 program that uses glew and I got this error: The procedure entry point _glewBindArray could not be located in the dynamic link library glew32.dll, How do I install glew properly?

View 1 Replies View Related

C# :: Programmatically Install / Remove INF Driver Through Button Event

May 14, 2014

How to install/remove an INF driver though a button click event. So far I have some code for installing the driver, however it doesn't work.

private void installDriversToolStripMenuItem_Click(object sender, EventArgs e) {
if (SetupCopyOEMInf("./PS3MCADriver/PS3_Memory_Card_Adaptor.inf", null, 0, 0, null, 0, 0, null)) {
foreach (string device in devices) {
UpdateDriverForPlugAndPlayDevices(IntPtr.Zero, device, "./PS3MCADriver/PS3_Memory_Card_Adaptor.inf", 0, false);

[Code] .....

View 14 Replies View Related

C++ :: Random Unit Vectors In N-dimensional Space?

Jul 21, 2013

I need a random unit vectors in n-dimensional space. how to build it in C++?

View 6 Replies View Related

C++ :: Running Unit Test On Library - Checking For NAN?

Jan 31, 2012

I am running a unit test on a library and this line keeps failing on Fedora 16, G++ 4.6.2

Code:
assertNAN(double, std::numeric_limits<double>::signaling_NaN()); //sanity check

The assert looks like this

Code:
//needs to copy it so that if its a function call it only does it once
#define assertNAN(type, one) {
type val = (type)one;
std::string lag(#one);
lag += " not a number";

[Code] ...

I am compiling with -DNDEBUG -O3 -ffast-math -fexpensive-optimizations to simulate a production environment. Is there a way to test for NAN consistently?

View 11 Replies View Related

C Sharp :: How To Add Local Database In Install Shield Limited Edition

Nov 26, 2014

I have small Project In Vs 2013.i have to deploy it.but i did through Installshield. Project is working same PC but when i try to deploy another PC i cannot loin in to my project.it seems to me that i didn't add database .

View 2 Replies View Related

C++ :: Installed Cygwin - Mingw Install Required In Order To Use DirectX?

Jan 20, 2014

Goal: I want to use cygwin g++ to write DirectX applications.

I know that one of the mingw packages contain directx libraries.

Now that I have installed cygwin, can I use directx also?

BTW, does netbeans open a mingw project using cygwin tool chain?

View 5 Replies View Related

C# :: Breaking Dependency In Static Method For Unit Test?

Feb 6, 2014

I have function that returns historical data. I can access it, using file name. If I use file name, it reads that file and saves it to dictionary, so that in the future, if historical data is required for the same file, it does not read it again (it's lazy loading). If no file is supplied to the function, it tries to read file which is given in app settings.

However, for unit testing, I do not want to read any file. Instead, I want it to use small sample of hardcoded historical data. In order to do that, I think, I need to introduce interface to it. Then I can use some IoC to choose between different implementation for unit testing purpose and ordinary launch of application.

Function to get history is given as follows:

public static class Auxiliary
{
private static Dictionary<string, MyData> _myData;
public static MyData GetData(string fileName = null)
{
// ...
}
}

I have created default Unit Test project with Visual Studio so, as far as I know, by default it uses MSTest as test runner and MSUnit as unit testing framework but it does not have any IoC container so I should manage NuGet packages for solution and install Unity.

As far as I know, MSUnit (aka Moles) can unit test static methods (it's unconstrained isolation framework, like Typemock Isolator, unlike NUnit) but still many people suggest not to use any static methods for unit testing.

Should I use shim or stub [URL] Stubs should be used for faking external dependencies and here it is not external library, but my own code.

View 1 Replies View Related

Visual C++ :: Deployment (install) Project Built Fails To Replace DLLs

Oct 15, 2013

I have a few VC2008 projects whose solutions also includes deployment projects, in which the primary output of several DLLs are included along with the primary apps EXE file. These DLLs are all part of the solution. Now because of the way I do my DLLs, which for lack of better phrase I'll call a true DYNAMIC link (the .LIB file can be discarded), and because I'm careful to ensure full backward compatibility in any new DLL versions, I would like to tell my deployment project to ALWAYS replace existing DLLS with the new versions, or at least offer a choice if it shouldn't be done unconditionally. Unfortunately it never seems to do that!

I'm being careful to create new overall project versions within the deployment project itself, as well as keeping my version resources, attached to each DLL up to date, and always do a full rebuild of everything in the solution (including the DLLs) prior to building the deployment project. But time and again the old DLLs stay un-updated after the install, and the person running it would have no way to know that without examining the target directories and examining file dates and/or versions. A customer shouldn't have to go through all that. I've gotten into the habit of instructing installers to fully un-install old versions before installing a new one, but as you probably know uninstalling from the control panel won't remove shared DLLs.

I was starting to think maybe the latest DLLs weren't being included in the deployment project at all. But if I manually delete those DLLS and do the install, the latest greatest are then always placed.

If I can't find a setting in the deployment project to change this behavior, I'll have to write a separate little console app to force delete (or at least archive) all the relevant DLLs as a pre-installation step. Or maybe supply a BATCH file to do all that, and run the install last. But it seems like a reasonable thing that a setting to make a deployment (MSI) file unconditionally overwrite DLLS, whose version or creation date is newer, ought to be an obvious feature. But if such an option exists, I've missed it completely.

View 5 Replies View Related

C++ :: How To Write Boost Unit Test In Visual Studio 2010

Apr 16, 2014

I'm new to c++ and boost library also. I need to test a function of my library. For example

// Functions.hpp
int add(const int x, const int y);
//Functions.cpp
int add(const int x, const int y)
{
return (x + y);
}

Now i need to test add function using boost. I need the result or output in below style. What all settings do i need to do in VS 2010 and how i should include boost test in the project.

==== Run unit tests ====
Running 2 test cases...
./mytest.cpp(13): error in "SimpleTestInMainTestingModule": check 1 == 2 failed
Test suite "Master Test Suite" failed with:
1 assertion out of 2 passed
1 assertion out of 2 failed
1 test case out of 2 passed
1 test case out of 2 failed

View 1 Replies View Related

Visual C++ :: Unit-testing Functions With User-defined Types?

May 4, 2013

How can we build unit-tests for functions of libraries, those with user-defined types used as their arguments ?

For example

CRecord func(Myclass * class, BSTR * name, CComptr<xxx> & something);

View 9 Replies View Related

C++ :: Write Unit Convertor For Converting Temperatures Celsius / Kelvin And Fahrenheit

Feb 8, 2014

I am trying to write a unit convertor for converting temperatures Celsius, Kelvin and Fahrenheit.

Code:
if (select_one == 't' || select_one == 'T'){// this one works perfectly...
//This section does not tell you the use of variables.
//The use of variables can be seen as comments in the main program

[Code].....

This part of code will be part of a larger Unit Converter program. Do you think this method of conversion is wise? The error codes are for debugging use only.

I convert all temperatures of all units, whether Celsius, Kelvin or Farhenheit into Celsius and then convert it into the units the user wants.

For example:

Kelvin -----> Celsius ------------------> Farhenheit
(Input) (base of conversion) (desired output unit)

Do you think this type of conversion is okay?

View 1 Replies View Related

C++ :: Multidimensional Array - Moving Whole Int Array Row As A Single Unit?

Feb 27, 2013

I have a multidimensional array that runs parallel with a string array

Lincoln 120 300 400
Parks 100 500 250
Shakespeare 0 30 50
Ghandi 250 100 40
Ashe 300 50 175
Rodriguez 87 118 320
Curie 284 0 112

I need to sort this and I know how to do it. But I need to sort it again with the highest value in the first row and keep all information in that row paired with the name . So

Lincoln 120 300 400
Parks 100 500 250

Parks 100 500 250
Lincoln 120 300 400

I need so swap this whole rows. I'm using dynamic array. So my question is Do I have to do a bunch of temps to move them? Or is there a way to move the whole int array row as a single unit?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved